/*
Theme Name: Navajiban Theme
Theme URI: https://navajibanfarm.com/
Author: Cascade AI
Author URI: https://windsurf.ai/
Description: A custom WordPress theme for Navajiban Multi Agro Farm, based on the static HTML site.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: responsive-layout, custom-background, custom-header, custom-menu, featured-images, one-column, two-columns
Text Domain: navajibantheme
*/

/* --- CSS Variables --- */
:root {
    --primary-color: #2E7D32; /* Green */
    --secondary-color: #FFC107; /* Amber */
    --dark-color: #333;
    --light-color: #f4f4f4;
    --font-family-headings: 'Merriweather', serif;
    --font-family-body: 'Poppins', sans-serif;
    --container-width: 90%;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3 {
    font-family: var(--font-family-headings);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

.container {
    width: var(--container-width);
    max-width: var(--max-width);
    margin: auto;
    overflow: hidden;
    padding: 2rem 0;
}

/* --- Header & Navigation --- */
header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    width: var(--container-width);
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
}

.nav-links li a {
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--secondary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px;
    background: var(--dark-color);
    transition: all 0.3s ease-in-out;
}

/* --- Hero Section --- */

#hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://navajibanagrofarm.com/wp-content/uploads/2025/06/fsrg3fjvpp8.jpg') no-repeat center center/cover;
    color: #fff;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

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

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

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #256a29;
}

/* --- Sections --- */
section {
    padding: 4rem 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
}

/* --- About Section --- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-content img {
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- Products Section --- */
#products {
    background: var(--light-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.product-card h3 {
    margin-bottom: 0.5rem;
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

/* --- Contact Section --- */
#contact {
    background: var(--light-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: #fff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.contact-form form input,
.contact-form form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 1.5rem;
}

.social-media a {
    color: var(--dark-color);
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: var(--primary-color);
}


.page-section {
    padding-top: 120px; /* Adjust as needed to clear the fixed header */
}

/* --- Home Page Sections --- */
#home-about .about-content {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

#home-about .about-text h2 {
    text-align: left;
    font-size: 2.5rem;
}

#home-about .about-text h2::after {
   display: none;
}

/* Why Choose Us Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.feature-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-item h3 {
    margin-bottom: 0.5rem;
}

/* Testimonials Section */
#testimonials {
    background: var(--light-color);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primary-color);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-card h4 {
    font-weight: 600;
    text-align: right;
    color: var(--primary-color);
}


/* --- About Page Sections --- */
#farming-practices {
    background: var(--light-color);
}

.practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.practice-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.practice-item h3 {
    margin-bottom: 0.5rem;
}

#team {
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--primary-color);
}

.team-member h3 {
    margin-bottom: 0.25rem;
}

.team-member p {
    font-style: italic;
    color: #666;
}

/* --- Products Page Sections --- */
#product-details h2, #how-to-buy h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.product-category {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.product-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.product-category h3 i {
    margin-right: 1rem;
}

.product-sub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.product-sub-item {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 5px;
    border-left: 5px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-sub-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-sub-item h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.product-sub-item p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

#how-to-buy {
    background: var(--light-color);
}

.purchase-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: center;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
}


/* --- Gallery Page Sections --- */
.gallery-category {
    margin-bottom: 4rem;
}

.gallery-category h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

.gallery-category p {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #666;
}

/* --- Contact Page Sections --- */
#map {
    padding: 0;
    margin-top: -4rem; /* Adjust to pull map up */
}

#map iframe {
    display: block;
}

.contact-extra-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.business-hours h3, .faq h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.business-hours h3 i, .faq h3 i {
    margin-right: 1rem;
}

.business-hours ul {
    list-style: none;
    margin-bottom: 1rem;
}

.business-hours li {
    margin-bottom: 0.5rem;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h4 {
    margin-bottom: 0.5rem;
}


/* --- Seasonal Highlights Section --- */
#seasonal-highlights {
    background: var(--light-color);
    text-align: center;
}

#seasonal-highlights h2 {
    margin-bottom: 3rem;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.highlight-item {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
}

/* --- Blog / Index Page --- */
.post-excerpt {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #eee;
}

.post-excerpt:last-of-type {
    border-bottom: none;
}

.post-excerpt .entry-title a {
    color: var(--dark-color);
}

.post-excerpt .entry-title a:hover {
    color: var(--primary-color);
}

.the-posts-navigation, .posts-navigation, .pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
}


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

.highlight-item h3 {
    margin: 1.5rem 1rem 0.5rem;
    color: var(--primary-color);
}

.highlight-item p {
    padding: 0 1.5rem 1.5rem;
    color: #666;
}

/* --- Footer --- */
footer {
    background: var(--dark-color);
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

/* --- Responsive Styles --- */
@media(max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }

    .nav-links li {
        opacity: 0;
    }

    .hamburger {
        display: block;
        position: absolute;
        right: 5%;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-active {
        transform: translateX(0%);
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0px);
        }
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .about-content, .contact-content, #home-about .about-content, .contact-extra-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }
}
