:root {
    --brand-green: #0B5D3B;
    --brand-black: #1A1A1A;
    --brand-gold: #D4AF37;
    --brand-light: #F8F9FA;
    --brand-gray: #6c757d;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--brand-black);
    background-color: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; font-weight: 700; }
.text-green { color: var(--brand-green) !important; }
.text-gold { color: var(--brand-gold) !important; }
.bg-green { background-color: var(--brand-green) !important; }
.bg-black { background-color: var(--brand-black) !important; }
.bg-light-custom { background-color: var(--brand-light) !important; }

/* Buttons */
.btn-gold {
    background-color: var(--brand-gold); color: var(--brand-black); font-weight: 600;
    padding: 14px 36px; border-radius: 50px; border: none; transition: all 0.3s ease;
    text-transform: uppercase; letter-spacing: 0.5px; font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}
.btn-gold:hover {
    background-color: #b8952e; color: #fff; transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}
.btn-outline-white {
    border: 2px solid rgba(255,255,255,0.6); color: #fff; font-weight: 600;
    padding: 13px 36px; border-radius: 50px; transition: all 0.3s ease;
    text-transform: uppercase; letter-spacing: 0.5px; font-size: 0.9rem;
}
.btn-outline-white:hover {
    background-color: #fff; color: var(--brand-green); border-color: #fff; transform: translateY(-3px);
}

/* Custom Text Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.anim-fade-up { animation: fadeUp 1s ease forwards; opacity: 0; }
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }
.delay-4 { animation-delay: 1.2s; }

/* Navbar */
.navbar {
    transition: all 0.4s ease; padding: 25px 0; background: transparent;
}
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.98); box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 15px 0; backdrop-filter: blur(10px);
}
.logo-wrap { display: flex; align-items: center; text-decoration: none; }

/* Logo Wipe Animation */
.logo-wipe-container {
    position: relative; width: 40px; height: 40px; margin-right: 12px;
    overflow: hidden; display: inline-block; border-radius: 8px;
}
.logo-icon { width: 40px; height: 40px; transition: transform 0.3s ease; }
.logo-wipe-container::after {
    content: ''; position: absolute; top: 0; left: -150%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.7), transparent);
    transform: skewX(-25deg); animation: logo-wipe 3s infinite; pointer-events: none;
}
@keyframes logo-wipe {
    0% { left: -150%; }
    60% { left: 150%; }
    100% { left: 150%; }
}
.navbar-scrolled .logo-wipe-container::after {
    background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.4), transparent);
}
.navbar-scrolled .logo-icon { transform: scale(1.05); }
.logo-text { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.6rem; color: #fff; transition: color 0.3s ease; letter-spacing: -0.5px; }
.navbar-scrolled .logo-text { color: var(--brand-black); }

.navbar-nav .nav-link { color: rgba(255,255,255,0.8); font-weight: 500; margin: 0 12px; position: relative; font-size: 0.95rem; }
.navbar-scrolled .navbar-nav .nav-link { color: #444; }
.navbar-nav .nav-link:hover, .navbar-scrolled .navbar-nav .nav-link:hover { color: var(--brand-gold); }
.navbar-nav .nav-link::after { content: ''; position: absolute; width: 0; height: 2px; display: block; margin-top: 5px; right: 0; background: var(--brand-gold); transition: width 0.3s ease; }
.navbar-nav .nav-link:hover::after { width: 100%; }
.navbar-nav .nav-link.active { color: var(--brand-green) !important; }
.navbar-scrolled .navbar-nav .nav-link.active { color: var(--brand-green) !important; }

/* =========================================
   MOBILE MENU PANEL (FIXED & UPGRADED)
========================================= */
@media (max-width: 991px) {
    .navbar { 
        background-color: rgba(255, 255, 255, 0.98); 
        box-shadow: 0 4px 20px rgba(0,0,0,0.05);
        padding: 18px 0; /* Increased spacing from top edge */
        min-height: 75px; /* Forces a strict height so they don't crash */
        display: flex;
        align-items: center; 
    }
    .navbar-scrolled {
        padding: 18px 0; /* Keeps spacing consistent when scrolling */
    }
    
    /* Ensure the container aligns items perfectly in the center */
    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap; /* Prevents anything from dropping to a new line */
    }

    .logo-wrap {
        display: flex; 
        align-items: center; 
        text-decoration: none;
        flex-shrink: 0; /* Stops logo from shrinking */
    }
    .logo-text { 
        color: var(--brand-black); 
        font-size: 1.4rem; 
        white-space: nowrap; /* Stops "MANNANITE" from breaking into two lines */
    }
    
    /* Hamburger Button - Made into a solid green pill so it's ALWAYS visible */
    .navbar-toggler {
        z-index: 1001; border: none; padding: 0; 
        width: 44px; height: 44px; 
        background-color: var(--brand-green); 
        border-radius: 10px;
        display: flex; flex-direction: column; justify-content: center; align-items: center;
        box-shadow: 0 4px 10px rgba(11, 93, 59, 0.2);
        flex-shrink: 0; /* Stops hamburger from being squeezed */
        margin-left: 15px; /* Adds a small gap between logo and hamburger */
    }
    .navbar-toggler:focus { box-shadow: none; }
    .toggler-icon { 
        width: 22px; height: 2px; background-color: #fff !important; 
        display: block; transition: all 0.3s ease; margin: 3px 0; 
    }
    .navbar-toggler[aria-expanded="true"] .toggler-icon:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); background-color: #fff; }
    .navbar-toggler[aria-expanded="true"] .toggler-icon:nth-child(2) { opacity: 0; }
    .navbar-toggler[aria-expanded="true"] .toggler-icon:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); background-color: #fff; }

    /* Hide the duplicate close button completely */
    .close-menu-btn { display: none !important; }

    .navbar-collapse {
        position: fixed; top: 0; right: 0; width: 100%; height: 100vh; background: var(--brand-green);
        padding: 100px 30px 30px; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0); z-index: 999;
        overflow-y: auto;
    }
    .navbar-collapse.show { transform: translateX(0); box-shadow: -10px 0 30px rgba(0,0,0,0.3); }
    
    .navbar-nav .nav-link { 
        color: rgba(255,255,255,0.85) !important; 
        font-size: 1.4rem; font-weight: 600; margin-bottom: 15px; 
        font-family: 'Poppins', sans-serif; 
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 15px;
    }
    .navbar-nav .nav-link::after { display: none; }

    /* Make active link pop on mobile with Gold text and left border */
    .navbar-nav .nav-link.active {
        color: var(--brand-gold) !important; 
        border-bottom: 2px solid var(--brand-gold);
    }

    .btn-gold { width: 100%; margin-top: 20px; background: var(--brand-gold); }
}

/* Hero Section */
.hero {
    min-height: 100vh; background: linear-gradient(rgba(26, 26, 26, 0.75), rgba(11, 93, 59, 0.85)), url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?q=80&w=2000&auto=format&fit=crop') no-repeat center center/cover;
    display: flex; align-items: center; position: relative; color: #fff; padding-top: 140px; padding-bottom: 100px;
}
.hero h1 { font-size: 3.8rem; line-height: 1.15; margin-bottom: 1.5rem; font-weight: 800; }
.hero p { font-size: 1.25rem; margin-bottom: 2rem; font-weight: 300; max-width: 650px; color: rgba(255,255,255,0.9); line-height: 1.6; }

/* Trust Bar */
.trust-marquee { position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(26, 26, 26, 0.95); padding: 20px 0; border-top: 3px solid var(--brand-gold); overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; animation: marquee 25s linear infinite; }
.trust-marquee:hover .marquee-track { animation-play-state: paused; }
.trust-item { display: inline-flex; align-items: center; color: #dcdcdc; font-size: 1rem; font-weight: 500; margin-right: 60px; }
.trust-item i { color: var(--brand-gold); margin-right: 12px; font-size: 1.3rem; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* General Sections */
section { padding: 100px 0; position: relative; }
.section-title h2 { font-size: 2.8rem; font-weight: 700; margin-bottom: 15px; }
.divider { width: 70px; height: 4px; background: var(--brand-gold); margin: 20px auto; border-radius: 2px; }
.divider.left { margin: 20px 0; }

/* About Section */
.about-img-wrapper { position: relative; padding: 20px; }
.about-img-main { width: 100%; height: 550px; object-fit: cover; border-radius: 15px; box-shadow: 0 30px 60px rgba(0,0,0,0.15); }
.about-stat-card { position: absolute; bottom: 40px; right: -20px; background: #fff; color: var(--brand-black); padding: 30px; border-radius: 15px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); border-bottom: 5px solid var(--brand-green); text-align: center; width: 220px; }
.about-stat-card h3 { font-size: 2.5rem; color: var(--brand-green); margin-bottom: 5px; }
.about-stat-card p { margin: 0; font-weight: 500; font-size: 0.9rem; }

/* Stats Infographic */
.stats-section { background: var(--brand-black); color: #fff; padding: 60px 0; }
.stat-item { text-align: center; border-right: 1px solid rgba(255,255,255,0.1); }
.stat-item:last-child { border-right: none; }
.stat-item h2 { font-size: 3rem; color: var(--brand-gold); font-weight: 800; margin-bottom: 10px; }
.stat-item p { text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; color: #bbb; margin: 0; }

/* Service Cards */
.service-card { background: #fff; border: 1px solid #eee; border-radius: 15px; padding: 45px 35px; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); height: 100%; position: relative; overflow: hidden; border-top: 4px solid transparent; }
.service-card:hover { transform: translateY(-15px); box-shadow: 0 25px 60px rgba(0,0,0,0.1); border-top-color: var(--brand-green); }
.service-icon { width: 80px; height: 80px; background: var(--brand-light); border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--brand-green); margin-bottom: 30px; transition: all 0.4s ease; }
.service-card:hover .service-icon { background: var(--brand-green); color: #fff; transform: scale(1.1) rotate(-5deg); border-radius: 50%; }
.service-card h4 { font-size: 1.3rem; margin-bottom: 15px; }
.service-card p { color: var(--brand-gray); font-size: 0.95rem; line-height: 1.7; }

/* Process Infographic */
.process-section { background: var(--brand-light); position: relative; overflow: hidden; }
.process-step { text-align: center; position: relative; padding: 20px; }
.process-number { width: 90px; height: 90px; background: #fff; border: 2px solid var(--brand-gold); color: var(--brand-green); font-weight: 800; font-size: 1.8rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 25px; position: relative; z-index: 2; box-shadow: 0 15px 30px rgba(0,0,0,0.05); transition: all 0.3s ease; }
.process-step:hover .process-number { background: var(--brand-green); color: #fff; border-color: var(--brand-green); transform: translateY(-10px); }
.process-step::before { content: ''; position: absolute; top: 65px; left: 50%; width: 100%; height: 2px; background: #d0d0d0; z-index: 1; }
.process-step:last-child::before { display: none; }
.process-step h5 { font-weight: 600; margin-bottom: 10px; font-size: 1.2rem; }
.process-step p { color: var(--brand-gray); font-size: 0.9rem; }

/* Featured Products */
.product-card { position: relative; border-radius: 15px; overflow: hidden; margin-bottom: 30px; cursor: pointer; height: 380px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); transition: transform 0.4s ease; }
.product-card:hover { transform: translateY(-10px) scale(1.02); }
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.product-card:hover img { transform: scale(1.15); }
.product-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px; background: linear-gradient(to top, rgba(0,0,0,0.95), transparent); color: #fff; transition: padding 0.3s ease; }
.product-card:hover .product-overlay { padding-bottom: 40px; }
.product-overlay span { font-size: 0.85rem; color: var(--brand-gold); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.product-overlay h5 { margin: 5px 0 0; font-weight: 600; font-size: 1.4rem; }

/* CTA Section */
.cta-section { background: linear-gradient(45deg, var(--brand-black), var(--brand-green)); color: #fff; text-align: center; position: relative; overflow: hidden; padding: 120px 0; }
.cta-section::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url('https://images.unsplash.com/photo-1625246333195-78d9c38ad449?q=80&w=2000&auto=format&fit=crop') no-repeat center center/cover; opacity: 0.1; }
.cta-section h2 { font-size: 3rem; margin-bottom: 20px; position: relative; z-index: 2; }
.cta-section p { font-size: 1.2rem; margin-bottom: 40px; opacity: 0.9; position: relative; z-index: 2; max-width: 700px; margin-left: auto; margin-right: auto; }

/* Footer */
footer { background: var(--brand-black); color: #b0b0b0; padding: 80px 0 20px; }
footer h5 { color: #fff; margin-bottom: 30px; font-size: 1.1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 15px; }
footer ul li a { color: #b0b0b0; text-decoration: none; transition: 0.3s; font-size: 0.95rem; }
footer ul li a:hover { color: var(--brand-gold); padding-left: 5px; }
.footer-contact i { color: var(--brand-green); margin-right: 10px; width: 20px; text-align: center; }
.social-links a { display: inline-block; width: 45px; height: 45px; background: rgba(255,255,255,0.1); color: #fff; border-radius: 50%; text-align: center; line-height: 45px; margin-right: 10px; transition: 0.3s; }
.social-links a:hover { background: var(--brand-green); transform: translateY(-5px); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 60px; padding-top: 30px; text-align: center; font-size: 0.85rem; color: #707070; }

/* WhatsApp Float */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; background: #25D366; color: #fff; width: 60px; height: 60px; border-radius: 50%; text-align: center; line-height: 60px; font-size: 2rem; z-index: 999; box-shadow: 0 10px 25px rgba(0,0,0,0.2); transition: 0.3s; animation: pulse 2s infinite; }
.whatsapp-float:hover { background: #128C7E; color: #fff; transform: scale(1.1); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    section { padding: 70px 0; }
    .about-stat-card { position: relative; right: auto; bottom: auto; margin: -40px auto 0; width: 90%; }
    .about-img-main { height: 400px; }
    .stats-section .col-md-3 { margin-bottom: 30px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px;}
    .stats-section .col-md-3:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0;}
    .process-step::before { display: none; }
    .cta-section h2 { font-size: 2rem; }
    .product-card { height: 300px; }
}