/* Global variables for colours and fonts */
:root {
    --primary-color: #2E7D32;
    --secondary-color: #4CAF50;
    --accent-color: #A5D6A7;
    --background-color: #F7F5E6;
    --text-color: #333;
    --heading-color: #1B5E20;
    --btn-color: #2E7D32;
    --btn-text-color: #ffffff;
}

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

body, html {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Navigation bar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}
nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}
nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}
nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}
nav ul li a:hover {
    color: var(--secondary-color);
}

/* Highlight the active navigation link */
nav ul li a.active {
    color: var(--secondary-color);
    font-weight: bold;
}

/* Hero section on the home page */
.hero {
    background-image: url('../assets/images/hero.jpg');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    padding: 7rem 1rem;
}
.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.hero .btn {
    background-color: var(--btn-color);
    color: var(--btn-text-color);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.hero .btn:hover {
    background-color: var(--secondary-color);
}

/* Generic section styling */
.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: auto;
}
.section h2 {
    text-align: center;
    color: var(--heading-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* Features section */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    text-align: center;
}
.features .feature {
    flex: 1 1 250px;
    padding: 1rem;
}
.features .feature h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}
.features .feature p {
    font-size: 0.9rem;
}

/* Products grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.product-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s ease;
}
.product-card:hover {
    transform: translateY(-4px);
}
.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.product-card h3 {
    margin: 0.8rem 0 0.4rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}
.product-card p {
    font-size: 0.9rem;
    padding: 0 1rem;
    min-height: 3.6rem;
}
.product-card .price {
    font-weight: bold;
    margin: 0.5rem 0;
}
.product-card .btn {
    display: inline-block;
    margin-bottom: 1rem;
    background-color: var(--btn-color);
    color: var(--btn-text-color);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.product-card .btn:hover {
    background-color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 2rem 1rem;
    margin-top: 4rem;
}
footer .footer-content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}
footer .footer-section {
    flex: 1 1 200px;
}
footer h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #ffffff;
}
footer p,
footer a,
footer li {
    font-size: 0.9rem;
    color: #f1f1f1;
    text-decoration: none;
}
footer ul {
    list-style: none;
    padding: 0;
}
footer a:hover {
    text-decoration: underline;
}

/* Contact form */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: auto;
    padding: 2rem 0;
}
.contact-info {
    flex: 1 1 300px;
    padding: 1rem;
}
.contact-form {
    flex: 1 1 300px;
    padding: 1rem;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin: 0.5rem 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.9rem;
}
.contact-form button {
    background-color: var(--btn-color);
    color: var(--btn-text-color);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.contact-form button:hover {
    background-color: var(--secondary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero {
        padding: 5rem 1rem;
    }
    .section {
        padding: 3rem 1rem;
    }
    footer .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Story page layout */
.story-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}
.story-image {
    flex: 1 1 300px;
}
.story-image img {
    width: 100%;
    border-radius: 12px;
}
.story-text {
    flex: 1 1 300px;
}
.story-text p {
    margin-bottom: 1rem;
    font-size: 1rem;
}