/* style.css */
:root {
    --primary-color: #2c6e49; /* Deep Green */
    --secondary-color: #52b788; /* Lighter Green */
    --accent-color: #f4a261; /* Warm Orange/Gold */
    --text-color: #333;
    --light-bg-color: #f8f9fa;
    --border-color: #ddd;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    margin: 0;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header & Navigation --- */
header {
    background: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}



/* Desktop Navigation */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: auto; /* Pushes the nav to the right on desktop */
}

.logo-img {
    height: 60px; /* Set a fixed height for the logo */
    width: auto;  /* Maintains aspect ratio */
    transition: opacity 0.3s ease;
}

.logo-img:hover {
    opacity: 0.8;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.cta-button {
    background-color: var(--accent-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.cta-button:hover {
    background-color: #e76f51;
}

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid #fff;
}

.cta-button.secondary:hover {
    background-color: #fff;
    color: var(--text-color);
}

/* Mobile Hamburger Menu */
.hamburger {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* --- Main Content --- */
main {
    padding-top: 0; /* Adjust if header is sticky */
}

section {
    padding: 60px 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://picsum.photos/seed/aksabre-hero/1920/1080.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Trust Bar */
.trust-bar {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

.trust-bar .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.trust-bar .trust-item {
    padding: 10px;
}

.trust-bar .trust-item strong {
    display: block;
    font-size: 1.5rem;
}

/* Light Background Section */
.light-bg {
    background-color: var(--light-bg-color);
}

/* Why Choose / Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.feature-item h3 {
    color: var(--primary-color);
    margin-top: 0;
}

/* Product Categories */
.product-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-card h3 {
    color: var(--primary-color);
    margin: 20px 0 10px 0;
}

.category-card p {
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.category-card ul {
    text-align: left;
    padding: 0 20px;
    margin-bottom: 20px;
}

.category-card .cta-button {
    margin-bottom: 30px;
}

/* Process Timeline */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.process-step {
    background: var(--light-bg-color);
    padding: 30px 20px;
    border-radius: 8px;
    border-top: 4px solid var(--secondary-color);
}

.process-step h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* CTA Center */
.cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Logistics Content */
.logistics-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.logistics-map img {
    width: 100%;
    border-radius: 8px;
}

.logistics-details h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.logistics-details ul {
    list-style: none;
    padding: 0;
}

.logistics-details li {
    background: #fff;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 3px solid var(--accent-color);
    border-radius: 4px;
}

/* --- UPDATED Certifications Grid --- */

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.cert-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center; /* Center align content */
    transition: transform 0.3s ease; /* Add a subtle hover effect */
}

.cert-item:hover {
    transform: translateY(-5px); /* Match the hover effect of other cards */
}

.cert-item img {
    max-width: 150px; /* Increased size for prominence */
    height: 100px; /* Fixed height for uniformity */
    object-fit: contain; /* Ensures the image fits without distortion */
    margin-bottom: 20px; /* Add space between image and text */
}

.cert-item h4 {
    color: var(--primary-color);
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.cert-item p {
    margin: 0;
    font-size: 0.9rem;
}

/* The mobile responsive rule for this section is already correct in the existing CSS,
   but here it is for clarity. It will stack the cards vertically. */
@media (max-width: 768px) {
    .certifications-grid {
        grid-template-columns: 1fr;
    }
}


/* About Story */
.about-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-story img {
    width: 100%;
    border-radius: 8px;
}

.company-stats {
    background-color: var(--light-bg-color);
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--secondary-color);
}

.company-stats ul {
    list-style: none;
    padding: 0;
}

.company-stats li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* Final CTA Section */
.cta-final {
    background-color: var(--accent-color);
    color: #fff;
    text-align: center;
    padding: 60px 0;
}

.cta-final h2 {
    color: #fff;
}

.cta-final .cta-button {
    background-color: #fff;
    color: var(--text-color);
}

.cta-final .cta-button.secondary {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.cta-final .cta-button.secondary:hover {
    background-color: #fff;
    color: var(--accent-color);
}

/* --- Footer --- */
footer {
    background-color: var(--text-color);
    color: #fff;
    padding: 40px 0 20px 0;
}

footer .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

footer h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

footer ul {
    list-style: none;
    padding: 0;
}

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

footer ul li a {
    color: #ccc;
    text-decoration: none;
}

footer ul li a:hover {
    color: var(--secondary-color);
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
}

.newsletter-form button {
    padding: 10px 15px;
    border: none;
    background-color: var(--secondary-color);
    color: #fff;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #555;
    font-size: 0.9rem;
}

.footer-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-icons img {
    max-width: 80px;
    opacity: 0.7;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .features-grid, .certifications-grid, footer .container {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .hamburger {
        display: flex;
    }
    
    nav {
        position: fixed;
        left: -100%; /* Hide off-screen */
        top: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #fff;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
        transition: left 0.3s ease-in-out;
        z-index: 999;
        padding-top: 60px;
    }

    nav ul {
        flex-direction: column;
        padding: 20px;
    }

    nav ul li {
        margin: 15px 0;
    }

    nav ul li a {
        font-size: 1.2rem;
    }

    nav ul li .cta-button {
        margin-top: 20px;
        text-align: center;
    }

    body.nav-active nav {
        left: 0; /* Slide in */
    }
    
    body.nav-active .overlay {
        display: block; /* Show overlay */
    }

    .overlay {
        display: none; /* Hidden by default */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 998;
    }

    /* Mobile Layouts */
    .hero h1 { font-size: 2rem; }
    .hero-cta { flex-direction: column; align-items: center; }
    
    .features-grid, .product-categories, .process-timeline, .certifications-grid, .logistics-content, .about-story, footer .container {
        grid-template-columns: 1fr;
    }

    .logistics-details {
        order: -1; /* Puts text above image on mobile */
    }

    .cert-item {
        flex-direction: column;
        text-align: center;
    }
    
    .trust-bar .container {
        flex-direction: column;
        gap: 10px;
    }
}
