/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary-green: #347928;   /* Dark Green */
    --secondary-green: #C0EBA6; /* Light Green */
    --bg-color: #FFFBE6;        /* Cream/Off-White */
    --text-dark: #1a1a1a;       /* Dark Text */
    --white: #ffffff;
    --shadow: 0 4px 8px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
}

/* =========================================
   2. NAVIGATION BAR
   ========================================= */
.navbar {
    background: var(--white);
    padding: 0.4rem 0; /* Reduced from 0.8rem */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 8px; /* Reduced gap slightly */
    text-decoration: none;
}

.logo-img {
    height: 40px; /* Reduced from 50px */
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.3rem; /* Reduced from 1.5rem */
    font-weight: 700;
    color: var(--primary-green);
    letter-spacing: 0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px; /* Slightly tighter gap */
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.95rem; /* Slightly smaller font */
    transition: var(--transition);
}

.nav-links a:hover {
    color: #2a6120;
    text-decoration: underline;
}

.hamburger {
    display: none;
    font-size: 1.5rem; /* Slightly smaller icon */
    cursor: pointer;
    color: var(--primary-green);
    z-index: 1001; 
}

/* =========================================
   3. HERO SLIDESHOW & TEXT (UPDATED FOR 1280x698px)
   ========================================= */

/* A. Slideshow Container */
.hero-slideshow {
    position: relative;
    width: 100%;
    
    /* UPDATED: Increased from 60vh to 80vh to show more vertical image */
    height: 80vh; 
    
    /* Keeps it from getting larger than the actual image quality allows */
    max-height: 800px; 
    
    overflow: hidden;
    background-color: #f0f0f0;
}

/* B. The Slides (Images) */
.slide {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    
    /* CRITICAL: Keeps the top of the image visible (heads/sky) */
    object-position: top center; 
    
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* C. Text Section (Below Images) */
/* Main Hero Styles */
.hero {
    background-image: url("assets/section.jpeg");
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 8%;
}

.hero-content {
    max-width: 520px;
}

.hero-content h1 {
    color: #2c5e2e;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    /* CHANGED: From grey #555 to a muted organic green */
    color: #4b5e4b; 
    margin-bottom: 25px;
}

.btn-primary {
    display: inline-block;
    background-color: #2c5e2e;
    color: #fff;
    padding: 14px 28px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #1e4020;
}

/* Tablet */
@media (max-width: 992px) {
    .hero {
        padding: 0 6%;
    }

    .hero-content h1 {
        font-size: 2.1rem;
    }
}

/* Mobile - UPDATED */
@media (max-width: 576px) {
    .hero {
        padding: 0 5%;
        /* Helps vertically center if needed on short screens */
        justify-content: center; 
    }

    .hero-content {
        max-width: 100%;
        /* CHANGED: Centers the text and the button */
        text-align: center; 
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

/* --- BUTTON STYLE UPDATE --- */
/* We merged the two button styles into one correct version */
.btn-primary {
    background-color: var(--primary-green); /* Green Background */
    color: var(--white);                    /* White Text */
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid var(--primary-green);
}

.btn-primary:hover {
    transform: translateY(-3px);   /* Lifts up slightly */
    background-color: transparent; /* Becomes transparent */
    color: var(--primary-green);   /* Text turns green */
}

/* D. Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .hero-slideshow {
        /* UPDATED: Increased mobile height from 40vh to 55vh */
        height: 55vh; 
        min-height: 350px;
    }

    .hero-text-section {
        padding: 40px 20px;
    }

    .hero-text-section h1 {
        font-size: 2rem;
    }

    .hero-text-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    
    /* --- UPDATED TEXT COLOR --- */
    color: #000000; /* Pure Black Text */
}
}
/* =========================================
   4. SECTIONS & CARDS
   ========================================= */
.section {
    padding: 80px 0;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 50px;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: var(--secondary-green);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.bg-secondary {
    background-color: rgba(192, 235, 166, 0.2);
}

/* Experts Grid */
.experts-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.expert-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 450px;
    flex: 1 1 300px;
    border: 1px solid var(--secondary-green);
}

.expert-card img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 25px;
    border: 5px solid var(--secondary-green);
}

.expert-role {
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Products Grid */
.category-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
}

.cat-btn {
    padding: 10px 25px;
    border: 2px solid var(--primary-green);
    background: transparent;
    color: var(--primary-green);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.cat-btn:hover, .cat-btn.active {
    background: var(--primary-green);
    color: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(52, 121, 40, 0.15);
    border-color: var(--secondary-green);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-color: #f9f9f9;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-green);
}

.product-info span {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    border-bottom: 5px solid var(--secondary-green);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.service-card ul {
    list-style: none;
    text-align: left;
    margin-top: 15px;
}

.service-card ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    font-size: 0.95rem;
}

.service-card ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-green);
    position: absolute;
    left: 0;
    top: 2px;
}

/* =========================================
   8. NEW CONTACT SECTION (2 LOCATIONS)
   ========================================= */
.contact-section {
    background-color: #f4f9f4; /* Very light green bg */
    padding-bottom: 60px;
}

.contact-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 900px; /* Wider to fit 2 boxes */
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-sub {
    color: #666;
    margin-bottom: 30px;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive columns */
    gap: 30px;
    margin-top: 20px;
}

.location-box {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 30px 20px;
    border-radius: 15px;
    transition: var(--transition);
}

.location-box:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-green);
    box-shadow: 0 5px 15px rgba(52, 121, 40, 0.1);
}

.loc-icon {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.location-box h4 {
    color: var(--primary-green);
    font-size: 1.1rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.btn-location {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background-color: var(--white);
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-location:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

/* =========================================
   9. NEW FOOTER DESIGN (Professional Green)
   ========================================= */
.main-footer {
    background-color: var(--primary-green); /* Full Green Background */
    color: var(--white);
    padding-top: 60px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 45px;
    background: white; /* Optional: White circle behind logo if needed */
    border-radius: 50%;
    padding: 2px;
}

.footer-logo span {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
}

.footer-desc {
    opacity: 0.85;
    line-height: 1.6;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--secondary-green); /* Highlight color */
}

/* Links List */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px; /* Slide effect */
}

/* Contact List */
.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.footer-contact i {
    color: var(--secondary-green);
    margin-top: 5px;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: 0.3s;
}

.social-icons a:hover {
    background: var(--secondary-green);
    color: var(--primary-green);
}

/* Bottom Bar */
.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .footer-grid {
        text-align: center; /* Center align on mobile */
    }
    
    .footer-logo, .footer-contact li, .footer-desc {
        justify-content: center; /* Center align logo & list items */
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .social-icons {
        justify-content: center;
    }
}
/* =========================================
   6. WHATSAPP BUTTON (LEFT SIDE)
   ========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: 30px; /* MOVED TO LEFT */
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    transition: var(--transition);
    z-index: 1000;
    animation: pulse-green 2s infinite; /* Adds the pulse */
}

/* Add this new keyframe definition */
@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}


.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1ebe57;
}







/* =========================================
   7. MOBILE RESPONSIVE OPTIMIZATION
   ========================================= */
@media (max-width: 768px) {
    .hamburger { display: block; }
    
    /* Fixed Mobile Menu */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 75%;
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-top: 0;
        transform: translateX(100%);
        transition: 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-links.nav-active { transform: translateX(0%); }

    .nav-links li { margin: 20px 0; }
    .nav-links a { font-size: 1.2rem; }

    /* --- HERO IMAGE FIX FOR MOBILE --- */
    .hero {
        height: auto;       /* Stop forcing full height */
        min-height: 50vh;   /* Minimum 50% screen height */
        padding: 80px 20px; /* Add padding so content breathes */
        background-attachment: scroll; /* Prevents zoom/jitter on iOS */
        background-position: center top; /* Focus on top-center of image */
    }

    .hero h1 { font-size: 2rem; } /* Slightly smaller text */
    
    /* WhatsApp smaller on mobile */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        left: 20px;
    }

    /* Stack buttons vertically */
    .contact-actions { flex-direction: column; }
    .contact-btn { justify-content: center; width: 100%; }
}
/* --- 1. HERO TEXT ANIMATION --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 1.5s ease-out; /* 1.5 seconds smooth slide */
}

/* --- 3. SCROLL REVEAL ANIMATION --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}