/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
}

html {
    scroll-behavior: smooth;
}

/* Variables */
:root {
    --primary-green: #2e7d32;
    /* Dark Green from logo */
    --accent-blue: #0288d1;
    /* Water Blue from logo */
    --light-bg: #e8f5e9;
    --white: #ffffff;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    padding: 10px 5%;
    /* Reduced top/bottom padding slightly */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 100px;
    /* Force a specific height for the navbar */
}

.logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-green);
}

.logo img {
    height: 80px;
    /* Increased from 40px to 80px */
    width: auto;
    /* Keeps the logo from stretching */
    margin-right: 15px;
}

.logo span {
    font-size: 1.5rem;
    /* Makes the company name text larger */
    font-weight: bold;
    color: var(--primary-green);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary-green);
}

/* Hero Section */
.hero {
    /* I have used Option A here. You can paste a different URL inside the quotes (' ') */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1464226184884-fa280b87c399?q=80&w=1920&auto=format&fit=crop');

    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Add this to style.css to fix the overlap */
.hero-content p {
    font-size: 1.3rem;
    /* Makes the text slightly larger/readable */
    margin-bottom: 40px;
    /* Pushes the button down by 40px */
    margin-top: 10px;
    /* Adds a little space above the text */
}

.btn {
    display: inline-block;
    /* IMPORTANT: This stops elements from overlapping it */
    padding: 12px 30px;
    background: var(--primary-green);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
    margin-top: 10px;
    /* Extra safety spacing */
}

.btn:hover {
    background: var(--accent-blue);
}

/* Products Section */
.container {
    padding: 60px 5%;
    max-width: 1200px;
    margin: auto;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-green);
    font-size: 2rem;
}

.filter-buttons {
    text-align: center;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 10px 20px;
    border: 1px solid var(--primary-green);
    background: none;
    color: var(--primary-green);
    cursor: pointer;
    margin: 5px;
    border-radius: 20px;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-green);
    color: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #eee;
}

.product-info {
    padding: 20px;
}

.product-category {
    color: var(--accent-blue);
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.product-title {
    margin: 10px 0;
    font-size: 1.2rem;
}

.product-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.pack-size {
    font-size: 0.85rem;
    font-weight: bold;
    color: #555;
}

/* Footer */
.footer {
    background: #222;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.footer h3 {
    color: var(--primary-green);
    margin-bottom: 15px;
}

.copyright {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Simplified for this demo */
    .hero-content h1 {
        font-size: 2rem;
    }
}