body{
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    font-family: sans-serif;
}

/* Header */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #e6e6e6;
    position: relative;
}

/* Navbar */
.navbar {
    max-width: 1200px;
    margin: auto;
    padding: 18px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Logo Centering */
.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo img {
    height: 55px;
}

/* Navigation Sections */
.nav-section {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links li a {
    text-decoration: none;
    color: #2b2b2b;
    font-size: 16px;
    font-weight: 500;
    padding-bottom: 4px;
    position: relative;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #176e61;
}

.nav-links li a:not(.contact-link)::after {
    content: "";
    display: block;
    width: 0%;
    height: 2px;
    background-color: #176e61;
    transition: width 0.3s ease;
    position: absolute;
    bottom: 0;
    left: 0;
}

.nav-links li a:not(.contact-link):hover::after {
    width: 100%;
}


.contact-link {
    background-color: #176e61;
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 20px;
    transition: background-color 0.3s ease;
    outline: none;
    border: none;
}

.contact-link:hover,
.contact-link:focus {
    background-color: #124f48;
    outline: none;
    border: none;
}


/* Hamburger Icon */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: #ffffff;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    border-top: 1px solid #e6e6e6;
    z-index: 10;
}

.mobile-menu a {
    text-decoration: none;
    color: #2b2b2b;
    padding: 10px 0;
    font-weight: 500;
    border-bottom: 1px solid #eee;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* Responsive Layout */
@media (max-width: 768px) {
    .nav-section {
        display: none;
    }

    .logo {
        display: block; /* <-- ensures logo is visible */
        position: static;
        transform: none;
        margin: 0 auto;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: none;
    }

    .mobile-menu.active {
        display: flex;
    }
}




/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}
/* Grid Layout for Slideshow & About Us */
.container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    height: calc(100vh - 80px); /* Full viewport height minus header */
    overflow: hidden;
}

/* Slideshow Section */
.slideshow {
    position: relative;
    width: 100%;
    height: 100%; /* Full height */
    overflow: hidden;
}

/* Individual Slides */
.slideshow-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

/* First slide visible */
.slideshow-slide.active {
    opacity: 1;
}

/* Overlay Effect */
.slideshow-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(152, 191, 139, 0); /* Light green overlay */
}

/* About Us Section */
.about-us {
    padding: 60px 40px;
    background-color: white;
    border-top: 4px solid #5A3E36; /* Brown top line */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers content vertically */
}

/* Text Styling */
.about-us h2, .about-us h3 {
    color: #608c55;
    margin-bottom: 15px;
}

.about-us p {
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333;
}

/* Responsive Design: Stacks sections on smaller screens */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr; /* Stacks sections vertically */
        height: auto;
    }

    .slideshow {
        height: 50vh; /* Half viewport height for mobile */
    }

    .about-us {
        padding: 40px 20px;
    }
}

/* Services Section */
.services {
    padding: 60px 20px;
    text-align: center;
    background-color: white;
    border-top: 4px solid #5A3E36; /* Brown top line */
}

/* Section Heading */
.services h2 {
    font-size: 36px;
    color: #2E604A; /* Olive Green */
    margin-bottom: 30px;
}

/* Tabs - Simple and Clean */
.tab-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    border-bottom: 2px solid #ddd;
    flex-wrap: wrap; /* Ensures wrapping on smaller screens */
}

.tab {
    font-size: 20px;
    font-weight: bold;
    color: black;
    background: none;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease-in-out;
}

/* Active Tab */
.tab.active {
    color: #2E604A; /* Olive Green */
}

/* Brown Underline for Active Tab */
.tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 3px;
    background: #5A3E36; /* Brown underline */
}

/* Tab Content */
.tab-content {
    width: 100%;
    padding: .5rem 0;
}

.content {
    margin-bottom: 4rem;
}

h3 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    font-weight: 600;
    color: #222;
    text-align: center;
}

.content-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
}

.content-layout img {
    max-width: 40%;
    border-radius: 8px;
    object-fit: cover;
}

.content-layout .text {
    max-width: 55%;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.content-layout.reverse {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .content-layout,
    .content-layout.reverse {
        flex-direction: column;
        text-align: center;
    }

    .content-layout img,
    .content-layout .text {
        max-width: 100%;
    }

    .content-layout .text {
        text-align: left;
    }
}

.show-more-wrapper {
    text-align: center;
    margin-top: 1rem;
}

#toggleBtn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#toggleBtn:hover {
    background-color: #555;
}

#toggleProcurementBtn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#toggleProcurementBtn:hover {
    background-color: #555;
}

#toggleProjectBtn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#toggleProjectBtn:hover {
    background-color: #555;
}

#toggleManufacturingBtn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#toggleManufacturingBtn:hover {
    background-color: #555;
}


#toggleSustainabilityBtn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#toggleSustainabilityBtn:hover {
    background-color: #555;
}


#toggleKcacBtn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#toggleKcacBtn:hover {
    background-color: #555;
}


/* Text Styling */
.text {
    flex: 1;
}

.text h3 {
    font-size: 28px;
    color: #2E604A; /* Olive Green */
    margin-bottom: 10px;
}

.text p {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

/* Hide Inactive Content */
.content {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

/* Show Active Content */
.content.active {
    display: block;
}



/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .content-layout {
        flex-direction: column;
        text-align: center;
    }

    .content img {
        width: 100%;
        height: 250px; /* Ensure uniform height */
        max-width: 400px; /* Limits excessive stretching */
        object-fit: cover;
    }
}

/* Ensure Tabs Wrap on Small Screens */
@media (max-width: 600px) {
    .tab-container {
        gap: 15px;
        justify-content: center;
    }

    .tab {
        font-size: 18px;
        padding: 8px 12px;
    }
}



/* Projects Section */
.projects {
    padding: 60px 20px;
    text-align: center;
    background-color: white;
    border-top: 4px solid #5A3E36;
}

.projects h2 {
    font-size: 36px;
    color: #2E604A;
    margin-bottom: 30px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: auto;
    align-items: start;
}

.project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    min-height: 320px;
}

.project-name {
    font-weight: bold;
    font-size: 20px;
    padding: 1rem;
    color: #2E604A;
    background: white;
    position: relative;
    z-index: 3;
    transition: opacity 0.3s ease;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.project-card:hover .project-name,
.project-card.expanded .project-name {
    opacity: 0;
}

.image-space {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    flex-shrink: 0;
    z-index: 1;
}

.project-details {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(76, 121, 66, 0.5);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    text-align: center;
    pointer-events: none;
}

.image-space:hover .project-details {
    opacity: 1;
    pointer-events: auto;
}

.project-details p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.4;
}

.project-details button {
    padding: 6px 12px;
    font-size: 13px;
    background-color: #fff;
    color: #4C7942;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.project-details button:hover {
    background-color: #e4f2e1;
}

.project-expand {
    max-height: 0;
    overflow: hidden;
    background-color: #e8f4ea;
    color: #2E604A;
    transition: max-height 0.5s ease, margin-top 0.3s ease;
    margin-top: 0;
}

.project-card.expanded .project-expand {
    max-height: 500px;
    margin-top: 10px;
}

.project-expand-inner {
    padding: 20px;
    font-size: 14px;
    max-width: 1000px;
    margin: auto;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.project-card.expanded .project-expand-inner {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 600px) {
    .project-details {
        opacity: 1;
        pointer-events: auto;
        background-color: rgba(76, 121, 66, 0.7); /* slightly darker for better readability */
    }

    .project-details button {
        display: block;
    }
}




.partnerships {
    padding: 6rem 1rem;
    background: #f9f9f9;
    text-align: center;
}

.partnerships h2 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: #333;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, .7fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.partner-grid2 {
    display: grid;
    grid-template-columns: 4fr 2fr 2fr 4fr;
    gap: 1rem;
    align-items: center;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.partner-grid3 {
    display: grid;
    grid-template-columns: 2fr 4fr 1fr 4fr 2fr;
    gap: 1rem;
    align-items: center;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.partner-logo img {
    height: 80px;
    max-width: 100%;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.partner-name {
    margin-top: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #444;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.partner-logo:hover .partner-name {
    opacity: 1;
    transform: translateY(0);
}

/* 📱 Responsive adjustments */
@media (max-width: 768px) {
    .partner-logo img {
        height: 60px;
    }

    .partner-name {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}


/* Contact Section */
.contact-section {
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background-color: white;
    border-top: 4px solid #5A3E36;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Equal halves */
    width: 100%;
}
.contact-grid .left,
.contact-grid .right {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center;     /* Center vertically (if there's height) */
    height: 100px;           /* Example height */
}
/* Section Heading */
.contact-section h2 {
    font-size: 36px;
    color: #2E604A; /* Olive Green */
    margin-bottom: 30px;
}

/* Contact Tabs */
.contact-tab-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    border-bottom: 2px solid #ddd;
}

.contact-tab {
    font-size: 20px;
    font-weight: bold;
    color: black;
    background: none;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease-in-out;
}

/* Active Tab */
.contact-tab.active {
    color: #2E604A; /* Olive Green */
}

/* Brown Underline for Active Tab */
.contact-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 3px;
    background: #5A3E36; /* Brown underline */
}

/* Contact Content (Hidden by Default) */
.contact-content {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

/* Show Active Content */
.contact-content.active {
    display: block;
}

/* Contact Layout */
.contact-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    text-align: left;
    max-width: 800px;
    margin: auto;
}

/* Business Card Styling */
.business-card h3 {
    font-size: 22px;
    color: #2E604A; /* Olive Green */
    margin-bottom: 10px;
}

.business-card img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

/* Contact Info Styling */
.contact-info h3 {
    font-size: 22px;
    color: #2E604A; /* Olive Green */
    margin-bottom: 5px;
}

.contact-info p {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .contact-layout {
        flex-direction: column;
        text-align: center;
    }

    .business-card img {
        width: 150px;
        height: 150px;
    }
}

/* Footer */
.site-footer {
    background-color: #2E604A; /* Olive Green */
    color: white;
    text-align: center;
    padding: 15px 0;
    font-size: 16px;
}

/* Link Styling */
.site-footer a {
    color: #F8F8F8; /* Lightened White for better contrast */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

/* Hover Effect */
.site-footer a:hover {
    color: #5A3E36; /* Brown on hover */
}

/* =========================================
   E-COMMERCE SECTION (aligned to site theme)
   ========================================= */

#ecommerce {
    /* Theme tokens (match other tabs) */
    --max-w: 1100px;
    --radius-lg: 16px;
    --radius-md: 12px;

    /* Site palette */
    --olive: #2E604A;  /* headings / accents */
    --brown: #5A3E36;  /* dividers / underlines */
    --ink:   #333;     /* body text */
    --ink-2: #2b2b2b;  /* labels */
    --muted: #6b7280;  /* notes */

    --card-bg: #ffffff;
    --card-brd: #eee;
    --card-soft: 0 4px 16px rgba(0,0,0,.06);

    /* Button defaults (match your dark gray CTAs but with olive hover) */
    --btn-bg: #333;
    --btn-ink: #fff;
    --btn-hover: #555;
    --btn-focus: rgba(46,96,74,.35);

    /* Rhythm */
    --space-1: 6px;
    --space-2: 10px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;

    /* Type */
    --fz-h3: 1.8rem; /* same as your other h3 */
    --fz-body: 1rem;
    --fz-stat: 1.8rem;
    --fz-label: .9rem;
    --fz-sub: .85rem;

    border-top: 4px solid var(--brown);   /* matches other sections */
    background: #fff;
    padding: 60px 20px;
}

/* Layout (keep your grid approach) */
#ecommerce .content-layout {
    display: grid;
    grid-template-columns: clamp(440px, 38vw, 660px) 1fr; /* image | copy */
    gap: var(--space-6);
    align-items: center;
    max-width: var(--max-w);
    margin: 0 auto;
    border-bottom: 1px solid #eee;       /* mirrors content blocks in tabs */
    padding-bottom: var(--space-5);
}

/* Heading (match tabs) */
#ecommerce h3 {
    font-size: var(--fz-h3);
    margin: 2rem 0 1rem;
    font-weight: 600;
    color: var(--olive);
    text-align: center;
}

/* Image */
#ecommerce .content-layout > img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    min-height: 280px;
    max-width: none;
    border-radius: 8px;                  /* match other images’ radius */
    object-fit: cover;
    box-shadow: var(--card-soft);
}

/* Copy column */
#ecommerce .text {
    display: flex;
    flex-direction: column;
    max-width: 640px;
    color: var(--ink);
}

#ecommerce .ecom-lede {
    margin: 0 0 var(--space-3);
    font-size: var(--fz-body);
    line-height: 1.6;
    color: var(--ink);
}

/* Analytics strip (simple white cards like the rest) */
#ecommerce .ecom-analytics {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: var(--space-3);
    margin: 0 0 var(--space-3);
}

#ecommerce .stat {
    background: var(--card-bg);
    border: 1px solid var(--card-brd);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    box-shadow: var(--card-soft);
    text-align: left;
}

#ecommerce .stat--accent {
    background: linear-gradient(0deg, rgba(46,96,74,.06), rgba(46,96,74,.06));
    border-color: rgba(46,96,74,.25);
}

#ecommerce .stat__label {
    font-size: var(--fz-label);
    color: var(--ink-2);
    margin-bottom: 6px;
    letter-spacing: .2px;
}

#ecommerce .stat__value {
    font-size: var(--fz-stat);
    font-weight: 800;
    line-height: 1.1;
    color: #222;
}

#ecommerce .stat__sub {
    margin-top: 6px;
    font-size: var(--fz-sub);
    color: #555;
}

/* CTA row + buttons (align with your toggle/CTA style) */
#ecommerce .store-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-2);
}

#ecommerce .store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 6px;                  /* match site buttons */
    background: var(--btn-bg);
    color: var(--btn-ink);
    text-decoration: none;
    font-weight: 600;
    border: none;
    transition: background .2s ease, transform .15s ease;
}

#ecommerce .store-btn:hover { background: var(--btn-hover); transform: translateY(-1px); }
#ecommerce .store-btn:active { transform: translateY(0); }
#ecommerce .store-btn:focus-visible { outline: 3px solid var(--btn-focus); outline-offset: 2px; }

#ecommerce .store-btn__icon { width: 18px; height: 18px; }
#ecommerce .store-btn__label { white-space: nowrap; }

/* Brand variants keep brand color but still “your” style */
#ecommerce .store-btn--takealot { background: #0ea5e9; }
#ecommerce .store-btn--takealot:hover { background: #0b86c0; }
#ecommerce .store-btn--amazon { background: #0b0b0c; }
#ecommerce .store-btn--amazon:hover { background: #1a1a1c; }

/* Note text */
#ecommerce .store-note {
    margin-top: var(--space-2);
    font-size: .95rem;
    color: var(--muted);
}

/* ====================
   RESPONSIVE
   ==================== */
@media (max-width: 980px) {
    #ecommerce .content-layout {
        grid-template-columns: clamp(360px, 50vw, 520px) 1fr;
        gap: var(--space-5);
    }
    #ecommerce .ecom-analytics { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 780px) {
    #ecommerce .content-layout { grid-template-columns: 1fr; }
    #ecommerce .content-layout > img {
        min-height: 220px;
        aspect-ratio: 16 / 10;
    }
    #ecommerce .text { text-align: center; }
    #ecommerce .store-cta-row { justify-content: center; }
    #ecommerce .ecom-analytics { grid-template-columns: 1fr; }
    #ecommerce .store-btn { width: 100%; justify-content: center; }
}

/* ====================
   REDUCED MOTION
   ==================== */
@media (prefers-reduced-motion: reduce) {
    #ecommerce .store-btn { transition: none; }
    #ecommerce .store-btn:hover { transform: none; }
}
