/* ======== 0. Global Setup & Variables ======== */
:root {
    --color-primary: #285430; /* Deep Green */
    --color-secondary: #5F8D4E; /* Medium Green */
    --color-accent: #A4BE7B; /* Light Green/Beige */
    --color-text: #333333; /* Dark Grey for text */
    --color-light-bg: #F8F9FA; /* Off-white */
    --color-white: #FFFFFF;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 6px 20px rgba(0, 0, 0, 0.1);
    --header-height: 80px; 
}

/* Basic Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Smooth Scrolling & Section Offset Fix */
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height); 
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--color-text);
    line-height: 1.7;
    background-color: var(--color-white);
}

h1, h2, h3, h4 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}
p { margin-bottom: 1rem; color: var(--color-text); }
a { text-decoration: none; color: var(--color-secondary); transition: color 0.3s ease; }
a:hover { color: var(--color-primary); }
ul { list-style: none; }
img { max-width: 100%; height: auto; border-radius: 8px; }

/* Re-usable Container */
.container { max-width: 1140px; margin: 0 auto; padding: 0 2rem; }

/* Section Header */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2.5rem; font-weight: 700; }
.section-header p { font-size: 1.1rem; color: #666; }

/* Re-usable Button */
.cta-button {
    display: inline-block;
    background: var(--color-secondary);
    color: var(--color-white);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}
.cta-button:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Re-usable Grid */
.grid-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* ======== 1. Header & Navigation ======== */
.header-main { 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    /* ======== MODIFIED: Simpler transition ======== */
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

/* State when scrolled */
.header-main.scrolled {
    background: var(--color-white);
    box-shadow: var(--shadow-light);
}

/* ======== REMOVED: .header-hidden rule is gone ======== */

.header-main nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-main .logo { font-size: 1.5rem; font-weight: 700; color: var(--color-primary); }
.hero .header-main .logo { color: var(--color-white); }
.header-main.scrolled .logo { color: var(--color-primary); }
.header-main .nav-links { display: flex; gap: 2rem; }
.header-main .nav-links a { font-weight: 500; color: var(--color-text); padding-bottom: 5px; position: relative; }
.hero .header-main .nav-links a { color: var(--color-white); }
.header-main.scrolled .nav-links a { color: var(--color-text); }
.header-main .nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px; background: var(--color-secondary);
    transition: width 0.3s ease;
}
.header-main .nav-links a:hover::after,
.header-main .nav-links a.active::after { width: 100%; }

.menu-toggle { display: none; background: none; border: none; font-size: 1.8rem; color: var(--color-primary); cursor: pointer; }
.hero .menu-toggle { color: var(--color-white); }
.header-main.scrolled .menu-toggle { color: var(--color-primary); }

/* ======== 2. Hero Section ======== */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    position: relative;
    background: url('https://source.unsplash.com/1920x1080/?mushroom,farm') no-repeat center center/cover;
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); }
.hero-content { position: relative; z-index: 2; }
.hero h1 { font-size: 3.5rem; font-weight: 700; color: var(--color-white); margin-bottom: 1rem; }
.hero p { font-size: 1.5rem; font-weight: 300; color: var(--color-white); margin-bottom: 2rem; }

/* ======== 3. About Us Section ======== */
.about-section { padding: 6rem 0; background-color: var(--color-light-bg); overflow: hidden; }
.about-image img { box-shadow: var(--shadow-medium); }
.about-text h2 { font-size: 2.5rem; }
.about-text p { font-size: 1.1rem; }
.benefits-list { margin-top: 1.5rem; }
.benefits-list li { font-size: 1.1rem; margin-bottom: 0.5rem; display: flex; align-items: center; }
.benefits-list .fa-check-circle { color: var(--color-secondary); margin-right: 0.75rem; font-size: 1.2rem; }

/* ======== 4. Products Section ======== */
.products-section { padding: 6rem 0; overflow: hidden; }
.product-category { margin-top: 3rem; }
.product-category h3 { font-size: 1.8rem; color: var(--color-secondary); border-bottom: 2px solid var(--color-accent); padding-bottom: 0.5rem; margin-bottom: 2rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.product-card {
    background: var(--color-white); border-radius: 10px;
    box-shadow: var(--shadow-light); overflow: hidden;
    transition: all 0.3s ease;
}
.product-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-medium); }
.product-card img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px 8px 0 0; }
.product-card h4 { font-size: 1.25rem; color: var(--color-primary); padding: 1.5rem; text-align: center; margin: 0; }

/* ======== 5. Team Section ======== */
.team-section { padding: 6rem 0; background-color: var(--color-light-bg); overflow: hidden; }
.team-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem; justify-content: center; max-width: 600px; margin: 0 auto;
}
.team-member { text-align: center; }
.team-member img {
    width: 200px; height: 200px; border-radius: 50%;
    object-fit: cover; margin-bottom: 1rem;
    box-shadow: var(--shadow-medium); border: 5px solid var(--color-white);
}
.team-member h4 { font-size: 1.4rem; margin-bottom: 0.25rem; }
.team-member p { font-size: 1rem; color: var(--color-secondary); font-weight: 500; }

/* ======== 6. Contact Section ======== */
.contact-section { padding: 6rem 0; overflow: hidden; }
.contact-info p { font-size: 1.1rem; margin-bottom: 2rem; }
.contact-info .info-item { display: flex; align-items: center; font-size: 1.1rem; margin-bottom: 1rem; }
.contact-info .info-item i { font-size: 1.5rem; color: var(--color-secondary); width: 40px; text-align: left; }
.contact-form { background: var(--color-light-bg); padding: 2.5rem; border-radius: 10px; box-shadow: var(--shadow-light); }
.contact-form h3 { text-align: center; font-size: 1.8rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.form-group input,
.form-group textarea {
    width: 100%; padding: 0.75rem 1rem; border-radius: 5px;
    border: 1px solid #ccc; font-family: 'Poppins', sans-serif;
    font-size: 1rem; transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none; border-color: var(--color-secondary);
    box-shadow: 0 0 5px rgba(95, 141, 78, 0.5);
}
.contact-form button { width: 100%; }

/* ======== NEW: Form Status Message Styling ======== */
.form-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
}
.form-status.success { color: var(--color-primary); }
.form-status.error { color: #D8000C; }

/* ======== 7. Footer ======== */
footer {
    background: var(--color-text); color: var(--color-light-bg);
    padding: 3rem 0; text-align: center;
}
footer p { color: var(--color-light-bg); margin-bottom: 0.5rem; }
footer a { color: var(--color-accent); font-weight: 500; }
footer a:hover { color: var(--color-white); }

/* ======== 8. Scroll Animations ======== */
.fade-in, .fade-in-up, .fade-in-left, .fade-in-right, .zoom-in {
    opacity: 0;
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in { transform: translateY(0); }
.fade-in.visible { opacity: 1; }
.fade-in-up { transform: translateY(40px); }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.fade-in-left { transform: translateX(-50px); }
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right { transform: translateX(50px); }
.fade-in-right.visible { opacity: 1; transform: translateX(0); }
.zoom-in { transform: scale(0.9); }
.zoom-in.visible { opacity: 1; transform: scale(1); }

/* ======== 9. Responsive Design ======== */
@media (max-width: 992px) {
    .grid-two-col { grid-template-columns: 1fr; }
    .about-section .about-image { order: 1; }
    .about-section .about-text { order: 2; }
    .contact-section .contact-info { margin-bottom: 3rem; }
}
@media (max-width: 768px) {
    html { scroll-padding-top: 70px; }
    :root { --header-height: 70px; }
    .header-main { background: var(--color-white); box-shadow: var(--shadow-light); }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.2rem; }
    .section-header h2 { font-size: 2rem; }
    .menu-toggle { display: block; z-index: 1002; color: var(--color-primary); }
    .hero .menu-toggle { color: var(--color-primary); }
    .nav-links {
        position: fixed; top: 0; right: 0; width: 70%; height: 100vh;
        background: var(--color-white); flex-direction: column;
        justify-content: center; align-items: center; gap: 2.5rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1001; box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    .nav-links.active { transform: translateX(0); }
    .nav-links a { color: var(--color-text); font-size: 1.2rem; }
    .header-main.scrolled .nav-links a { color: var(--color-text); }
    .hero .header-main .nav-links a { color: var(--color-text); }
}