/* Age Verification Pop-up */
#age-verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

#age-verification-overlay.hidden {
    display: none;
}

.age-verification-card {
    background-color: var(--main-background-beige); /* Earthy Beige */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.age-verification-card h2 {
    color: var(--primary-dark-green);
    margin-bottom: 20px;
    font-size: 2em;
}

.age-verification-card p {
    color: #555;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.age-verification-card button {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    margin: 0 10px;
    transition: background-color 0.3s ease;
}

#age-verify-btn {
    background-color: var(--primary-dark-green); /* Deep Forest Green */
    color: #fff;
}

#age-verify-btn:hover {
    background-color: #20503B; /* Slightly darker green on hover */
}

#age-exit-btn {
    background-color: #ccc;
    color: #333;
}

#age-exit-btn:hover {
    background-color: #bbb;
}


/* Basic Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark-green: #2D6A4F;
    --soft-accent-green: #95D5B2;
    --main-background-beige: #F2E9E4;
    --card-background-cream: #D8F3DC;
    --harvest-gold: #CFA960; /* New gold accent color */
}

body {
    font-family: 'Montserrat', sans-serif; /* Modern sans-serif font */
    line-height: 1.6;
    color: var(--primary-dark-green);
    background-color: var(--main-background-beige);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
}

a {
    color: var(--primary-dark-green);
    text-decoration: none;
}

a:hover {
    color: var(--soft-accent-green);
}

body {
    font-family: 'Montserrat', sans-serif; /* Modern sans-serif font */
    line-height: 1.6;
    color: var(--primary-dark-green);
    background-color: var(--main-background-beige);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
}

a {
    color: var(--primary-dark-green);
    text-decoration: none;
}

a:hover {
    color: var(--soft-accent-green);
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    background: var(--primary-dark-green);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    transition: background 0.3s ease;
}

.btn:hover {
    background: var(--soft-accent-green);
}

/* Header */
header {
    background: #fff;
    color: #333;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
    position: fixed; /* Fixed navigation */
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo img {
    height: 70px; /* Optimal readability on mobile */
    width: auto;
    vertical-align: middle;
}

header .logo {
    font-size: 1.8rem;
    font-weight: bold;
}

header nav ul {
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li .cart-icon {
    font-size: 1.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    header nav ul {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    header nav ul li {
        margin: 5px 10px;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    #hero p {
        font-size: 1rem;
    }

    #newsletter form {
        flex-direction: column;
        align-items: center;
    }

    #newsletter input[type="email"] {
        width: 80%;
        border-radius: 5px;
        margin-bottom: 10px;
    }

    #newsletter button {
        width: 80%;
        border-radius: 5px;
    }

    footer .container {
        flex-direction: column;
    }

    footer .footer-links ul {
        flex-direction: column;
        padding: 0;
    }

    footer .footer-links ul li {
        margin: 5px 0;
    }

    footer .newsletter-signup {
        margin-top: 20px;
    }
}

/* Hero Section */
#hero {
    position: relative;
    height: 500px; /* Fixed height for the hero section */
    overflow: hidden;
    margin-top: 70px; /* Adjust for fixed header height */
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slideshow-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slideshow-container img.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    z-index: 2;
}

.hero-overlay h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-overlay p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

/* Featured Products Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.product-card {
    background: var(--card-background-cream);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease-in-out;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-dark-green);
}

.product-card p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 15px;
}

.product-card .btn {
    background: var(--primary-dark-green);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.product-card .btn:hover {
    background: var(--soft-accent-green);
}

/* Responsive adjustments for product grid */
@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr; /* Stack cards on small screens */
    }
}

/* Story Section */
#story {
    background-color: var(--main-background-beige);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

#story::before, #story::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    background-size: contain;
    opacity: 0.1;
    z-index: 0;
}

#story::before {
    top: 0;
    left: 0;
    background-image: url("https://www.svgrepo.com/show/368565/plant-leaf.svg"); /* Placeholder floral line art */
}

#story::after {
    bottom: 0;
    right: 0;
    background-image: url("https://www.svgrepo.com/show/368565/plant-leaf.svg"); /* Placeholder floral line art */
    transform: rotate(180deg);
}

#story h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.8rem;
    color: var(--primary-dark-green);
}

.story-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.story-text {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.story-image {
    flex: 1;
    text-align: center;
}

.story-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Promise Infographic Section */
#promise-infographic {
    background-color: var(--main-background-beige);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

#promise-infographic::before, #promise-infographic::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    background-size: contain;
    opacity: 0.1;
    z-index: 0;
}

#promise-infographic::before {
    top: 20%;
    left: 5%;
    background-image: url("https://www.svgrepo.com/show/368565/plant-leaf.svg"); /* Placeholder floral line art */
    transform: rotate(45deg);
}

#promise-infographic::after {
    bottom: 20%;
    right: 5%;
    background-image: url("https://www.svgrepo.com/show/368565/plant-leaf.svg"); /* Placeholder floral line art */
    transform: rotate(225deg);
}

#promise-infographic h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.8rem;
    color: var(--primary-dark-green);
}

.infographic-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.infographic-item {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    text-align: center;
    padding: 20px;
    background-color: var(--card-background-cream);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.infographic-item .icon {
    font-size: 3rem;
    color: var(--primary-dark-green);
    margin-bottom: 15px;
    display: block;
}

.infographic-item h3 {
    font-size: 1.3rem;
    color: var(--primary-dark-green);
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .story-content {
        flex-direction: column;
    }

    .story-image img {
        margin-top: 30px;
    }

    .infographic-grid {
        flex-direction: column;
        align-items: center;
    }

    .infographic-item {
        max-width: 90%;
    }
}

/* Featured Products & About & Newsletter Sections */
#featured-products, #about, #newsletter {
    padding: 60px 0;
    background: #fff;
    margin-bottom: 20px;
}

#featured-products h2, #about h2, #newsletter h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: var(--primary-dark-green);
}

#about p {
    color: var(--primary-dark-green);
}

#newsletter p {
    color: var(--primary-dark-green);
}

/* About Section */
#about {
    background-color: var(--main-background-beige);
    padding: 80px 0;
    color: #555;
    text-align: center;
}

#about .container {
    max-width: 800px;
}

#about h2 {
    margin-bottom: 30px;
}

#about p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    #about .container {
        padding: 0 20px;
    }
}

/* Farmers Hero Section */
#farmers-hero {
    background-image: url("https://picsum.photos/1920/400?random=8"); /* Sunlit field background */
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 100px 0;
    margin-top: 70px; /* Adjust for fixed header */
}

#farmers-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

#farmers-hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* Partner Profiles Section */
#partner-profiles {
    background-color: var(--main-background-beige);
    padding: 80px 0;
}

#partner-profiles .container {
    max-width: 1000px;
}

.partner-profile {
    display: flex;
    align-items: center;
    background-color: var(--card-background-cream);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    overflow: hidden;
}

.partner-profile.odd {
    flex-direction: row-reverse; /* Alternate layout */
}

.profile-image {
    flex: 1;
    min-width: 40%;
}

.profile-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.profile-text {
    flex: 1.5;
    padding: 40px;
}

.profile-text h3 {
    font-size: 2rem;
    color: var(--primary-dark-green);
    margin-bottom: 10px;
}

.profile-text h4 {
    font-size: 1.2rem;
    color: var(--soft-accent-green);
    margin-bottom: 20px;
}

.profile-text p {
    line-height: 1.7;
    color: #555;
}

/* B2B Call to Action Section */
#b2b-cta {
    background-color: var(--primary-dark-green);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

#b2b-cta h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

#b2b-cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.b2b-btn {
    background: var(--soft-accent-green);
    color: var(--primary-dark-green);
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.b2b-btn:hover {
    background: #fff;
}

/* Responsive adjustments for our-farmers.html */
@media (max-width: 768px) {
    #farmers-hero h1 {
        font-size: 2.5rem;
    }

    #farmers-hero p {
        font-size: 1rem;
        padding: 0 20px;
    }

    .partner-profile {
        flex-direction: column !important; /* Stack columns on mobile */
    }

    .profile-image {
        min-width: 100%;
    }

    .profile-text {
        padding: 30px;
    }

    #b2b-cta h2 {
        font-size: 2.2rem;
    }

    #b2b-cta p {
        font-size: 1rem;
        padding: 0 20px;
    }
}

/* Newsletter Form */
#newsletter form {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

#newsletter input[type="email"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    width: 300px;
    max-width: 70%;
}

#newsletter button {
    border-radius: 0 5px 5px 0;
    border: none;
    cursor: pointer;
}

/* Footer */
footer {
    background: var(--primary-dark-green);
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

footer .footer-links ul {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

footer .newsletter-signup {
    text-align: center;
}

footer .newsletter-signup h3 {
    margin-bottom: 10px;
}

footer .newsletter-signup form {
    display: flex;
}

footer .newsletter-signup input[type="email"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
}

footer .newsletter-signup button {
    padding: 8px 15px;
    background: var(--soft-accent-green);
    color: #fff;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

footer .footer-links ul li {
    margin: 0 10px;
}

footer .footer-links a {
    color: #fff;
}