/*
=================================================
1. GLOBAL STYLES & RESET
=================================================
*/

:root {
    --color-primary: #38761d;
    /* Deep Forest Green (Agriculture focus) */
    --color-secondary: #8f9779;
    /* Earthy Green/Brown */
    --color-accent: #b6d7a8;
    /* Light Sage Green */
    --color-text-dark: #333333;
    --color-text-light: #f4f4f4;
    --color-background: #ffffff;
    --color-light-gray: #f9f9f9;
    --color-shadow: rgba(0, 0, 0, 0.08);
    --font-family-primary: 'Poppins', sans-serif;
    --transition-speed: 0.3s;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-primary);
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-background);
}

::-webkit-scrollbar {
    width: 8px;
    background-color: var(--color-accent);
    height: 8px;
}

::-webkit-scrollbar-thumb {
    border: 2px solid var(--color-accent);
    background-color: var(--color-primary);
    border-radius: 4px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
    overflow: hidden;
    /* Important for scroll-reveal animations */
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color var(--transition-speed);
}

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

.section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-secondary);
    font-size: 1.1em;
    margin-bottom: 40px;
}

/* Helper Classes for Layout */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.grid-4-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.img-responsive {
    width: 100%;
    height: auto;
    display: block;
}

/*
=================================================
2. BUTTONS & UTILITIES
=================================================
*/

.btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    box-shadow: 0 4px 10px rgba(56, 118, 29, 0.4);
}

.btn-primary:hover {
    background-color: #4a9126;
    /* Slightly darker green */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(56, 118, 29, 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.btn-whatsapp {
    background-color: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    color: white;
    background-color: #128c7e;
}

.btn-call {
    background-color: #ff9900;
    color: white;
}

.btn-call:hover {
    background-color: #cc7a00;
    color: white;
}

/* Icon Styling */
.icon-large {
    font-size: 3em;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.icon-medium {
    font-size: 2em;
    color: var(--color-accent);
    margin-bottom: 10px;
}

/*
=================================================
3. HEADER & NAVIGATION
=================================================
*/

#main-header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--color-shadow);
    transition: background-color 0.3s;
}

#main-header.scrolled {
    background-color: var(--color-background);
    padding: 10px 0;
}

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

.logo {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li a {
    color: var(--color-text-dark);
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    position: relative;
    transition: color var(--transition-speed);
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--color-primary);
}

.nav-links li a.active::after {
    content: '';
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 5px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.menu-toggle {
    display: none;
    font-size: 1.5em;
    cursor: pointer;
    color: var(--color-primary);
}

/*
=================================================
4. SECTION STYLES
=================================================
*/

/* --- 1. Hero Section --- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 0;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #000000d7, #38761d6c);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--color-text-light);
    max-width: 800px;
    padding-top: 80px;
    /* Offset for fixed header */
}

.hero-content h1 {
    font-size: 4.5em;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}

.hero-content p {
    font-size: 1.5em;
    font-weight: 400;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

/* --- 2. About Us Section --- */
.about-section {
    background-color: var(--color-background);
}

.about-image-wrapper img {
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--color-shadow);
    transition: transform var(--transition-speed);
}

.about-image-wrapper:hover img {
    transform: scale(1.02);
}

.about-content h2 {
    text-align: left;
    margin-top: 0;
}

.about-content p {
    margin-bottom: 15px;
    color: var(--color-text-dark);
}

/* --- 3. Our Mission & Values --- */
.mission-section {
    background-color: var(--color-light-gray);
}

.value-card {
    text-align: center;
    padding: 30px;
    background-color: var(--color-background);
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--color-shadow);
    transition: transform 0.4s, box-shadow 0.4s;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(56, 118, 29, 0.2);
}

.value-card h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

/* --- 4. Our Mushrooms (Product Showcase) --- */
.products-section {
    background-color: var(--color-background);
}

.product-card {
    background-color: var(--color-light-gray);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--color-shadow);
    transition: transform 0.4s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-images-slider {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.product-img.active-img {
    opacity: 1;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

.price-placeholder {
    font-weight: 600;
    color: var(--color-secondary);
    margin: 15px 0;
}

/* --- 5. Health Benefits --- */
.benefits-section {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.benefits-section .section-title {
    color: var(--color-text-light);
}

.benefit-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: background-color 0.3s;
}

.benefit-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.benefit-item h4 {
    margin-bottom: 10px;
    font-weight: 600;
}

.benefit-item .icon-medium {
    color: var(--color-accent);
}

/* --- 6. How We Grow (Timeline) --- */
.grow-section {
    background-color: var(--color-light-gray);
}

.grow-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
}

.timeline-item:nth-child(even) {
    direction: rtl;
    /* Flip content/image order */
}

.timeline-item:nth-child(even)>* {
    direction: ltr;
    /* Reset text direction */
}

.timeline-content {
    padding: 20px;
    border-left: 5px solid var(--color-accent);
}

.timeline-item:nth-child(even) .timeline-content {
    border-left: none;
    border-right: 5px solid var(--color-accent);
}

.timeline-content h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

.timeline-image img {
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--color-shadow);
}

/* --- 7. Product Gallery (Masonry/Grid) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 250px;
    gap: 15px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--color-shadow);
    position: relative;
    margin: 0;
}

.gallery-item.large {
    grid-row: span 2;
    grid-column: span 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
    /* Zoom-in effect */
}

/* --- 8. Team Section --- */
.team-section {
    background-color: var(--color-background);
    text-align: center;
}
.team-cards{
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.team-member {
    padding: 20px;
    border-radius: 10px;
    transition: background-color 0.3s;
    min-width: 300px;
    box-shadow: 0 4px 10px #46464656;
    background: white;
    width: 100%;
    max-width: 300px;
    margin-bottom: 30px;
}

.team-member:hover {
    background-color: var(--color-light-gray);
}

.profile-photo-circle {
    width: 100%;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 4px solid var(--color-accent);
    box-shadow: 0 0 0 6px rgba(182, 215, 168, 0.4);
}

.profile-photo-circle img {
    width: 100%;
    height: 100%;
    object-position: top;
    object-fit: cover;
}

.team-member h4 {
    color: var(--color-primary);
    margin-bottom: 5px;
}

.team-member .role {
    color: var(--color-secondary);
    font-style: italic;
    margin-bottom: 10px;
}

.team-group-photo {
    margin-top: 50px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: start;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 10px 30px var(--color-shadow);
}

.team-group-photo img {
    width: 100%;
    border-radius: 10px;
    max-width: 500px;
    max-height: 400px;
    object-fit: cover;
    object-position: top;
}

.team-group-photo .caption {
    padding: 15px;
    font-size: 20px;
    text-align: justify;
    max-width: 600px;
    background-color: var(--color-light-gray);
    font-style: italic;
}

/* --- 9. Customer Testimonials (Carousel) --- */
.testimonials-section {
    background-color: var(--color-light-gray);
}

.testimonial-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slide {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--color-background);
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--color-shadow);
    display: none;
    /* Controlled by JS */
    transition: opacity 0.5s ease-in-out;
}

.testimonial-slide.active {
    display: block;
}

.customer-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--color-primary);
}

.quote {
    font-size: 1.1em;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--color-text-dark);
}

.customer-name {
    font-weight: 600;
    color: var(--color-primary);
}

.carousel-dots {
    text-align: center;
    margin-top: 30px;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--color-primary);
}

/* --- 10. Ordering Section (Pricing) --- */
.ordering-section {
    text-align: center;
}

.pricing-card {
    background-color: var(--color-background);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--color-light-gray);
    box-shadow: 0 4px 15px var(--color-shadow);
    transition: transform 0.3s, border-color 0.3s;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent);
}

.pricing-card h3 {
    color: var(--color-primary);
    margin-bottom: 20px;
    font-size: 1.8em;
}

.primary-card {
    border: 3px solid var(--color-primary);
    box-shadow: 0 8px 25px rgba(56, 118, 29, 0.3);
}

.features-list {
    list-style: none;
    text-align: left;
    margin: 20px 0 30px;
}

.features-list li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--color-light-gray);
    display: flex;
    align-items: center;
}

.features-list li i {
    color: var(--color-primary);
    margin-right: 10px;
    font-size: 1.1em;
}

.features-list li.disabled {
    color: #999;
    text-decoration: line-through;
}

.features-list li.disabled i {
    color: #999;
}

/* --- 11. FAQ Section (Accordion) --- */
.faq-section {
    background-color: var(--color-light-gray);
}

.accordion-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 18px 20px;
    text-align: left;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--color-text-dark);
    background-color: var(--color-background);
    cursor: pointer;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.accordion-header:hover {
    background-color: var(--color-accent);
    color: var(--color-text-light);
}

.accordion-header i {
    transition: transform 0.3s;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    background-color: var(--color-background);
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.accordion-content.open {
    max-height: 200px;
    /* Large enough for content */
    padding: 15px 20px;
}

/* --- 12. Contact Section --- */
.contact-section {
    background-color: var(--color-background);
}

.contact-form-wrapper {
    padding-right: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--color-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 5px rgba(56, 118, 29, 0.3);
}

.error-message {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
    height: 18px;
    /* Reserve space */
}

.form-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    display: none;
    font-weight: 600;
}

.form-status.success {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.form-status.error {
    background-color: #ffcccc;
    color: red;
}

.contact-info-wrapper {
    padding-left: 20px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-details p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-details i {
    margin-right: 15px;
    color: var(--color-primary);
    font-size: 1.2em;
    margin-top: 3px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.cta-buttons .btn {
    flex-grow: 1;
    text-align: center;
}

.map-embed-placeholder {
    height: 350px;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: var(--color-light-gray);
}

.map-embed-placeholder p {
    color: #666;
    font-style: italic;
}

.map-embed-placeholder iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/*
=================================================
5. FOOTER
=================================================
*/

#main-footer {
    background-color: var(--color-text-dark);
    color: var(--color-text-light);
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li a {
    color: var(--color-text-light);
    display: block;
    padding: 5px 0;
}

.footer-col ul li a:hover {
    color: var(--color-accent);
}

.social-icons a {
    color: var(--color-text-light);
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--color-accent);
}

.copyright {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.9em;
    color: #aaa;
}

/*
=================================================
6. ANIMATIONS & LAZY LOADING PLACEHOLDERS
=================================================
*/

/* --- Scroll Reveal Animations --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Specific Hero Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s ease-out 0.5s forwards;
    opacity: 0;
}

.fade-in-up-delay {
    animation: fadeInUp 1s ease-out 0.8s forwards;
    opacity: 0;
}

.fade-in-up-delay-2 {
    animation: fadeInUp 1s ease-out 1.1s forwards;
    opacity: 0;
}

/* --- Back to Top Button --- */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    font-size: 1.5em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 900;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/*
=================================================
7. MEDIA QUERIES (Responsiveness)
=================================================
*/

/* Tablet (Max-width 992px) */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3.5em;
    }

    .hero-content p {
        font-size: 1.3em;
    }

    .grid-2-col {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        order: 2;
        /* Put image after text on smaller screens for better flow */
    }

    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 0;
    }
}

/* Mobile (Max-width 768px) */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    .logo-hidden{
        display: none;
    }

    .section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    /* Navigation Menu Collapse */
    .nav-links {
        position: fixed;
        top: 66px;
        /* Below header */
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-primary);
        flex-direction: column;
        align-items: center;
        padding-top: 30px;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links li a {
        color: var(--color-text-light);
        font-size: 1.2em;
    }

    .nav-links li a:hover {
        color: var(--color-text-light);
        font-size: 1.2em;
    }

    .nav-links li a.active {
        color: var(--color-light-gray) !important;
    }

    .nav-links li a.active::after {
        color: var(--color-light-gray) !important;
        background-color: var(--color-light-gray);
    }

    .menu-toggle {
        display: block;
    }

    /* Hero */
    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1.1em;
    }

    /* Timeline */
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 20px;
        direction: ltr !important;
        /* Reset all to normal flow */
    }

    .timeline-item:nth-child(even) .timeline-content {
        border-right: none;
    }

    .timeline-content {
        order: 2;
    }

    .timeline-image {
        order: 1;
    }

    .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        border-left: 5px solid var(--color-accent);
    }

    /* Gallery */
    .gallery-grid {
        grid-auto-rows: 200px;
    }

    .gallery-item.large {
        grid-row: span 1;
    }

    /* Ordering */
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card:not(:last-child) {
        margin-bottom: 20px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col ul {
        padding-left: 0;
        text-align: center;
    }

    .social-icons {
        margin-top: 10px;
    }
}