/* GLOBAL VARIABLES based on Packaging */
:root {
    --primary-green: #228B22; /* Matches leaf logo */
    --primary-blue: #1C2E4A;  /* Matches TruValue Text */
    --kraft-bg: #f4e4d0;      /* Light Beige background */
    --dark-kraft: #C4A484;    /* Darker beige for accents */
    --white: #ffffff;
    --text-dark: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--kraft-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

/* NAVIGATION */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-blue);
    text-decoration: none;
}

.logo span {
    color: var(--primary-green);
}

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

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

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

/* HERO SECTION */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/hero-bg.jpg'); /* You can add a farm image here */
    background-color: var(--primary-blue);
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-family: 'Georgia', serif;
}

.btn {
    padding: 12px 30px;
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    text-decoration: none;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #1a6b1a;
}

/* SECTIONS */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

h2.section-title {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 40px;
    font-size: 2.2rem;
    position: relative;
}

h2.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-green);
    margin: 10px auto;
}

/* PRODUCT CARDS */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img {
    width: 100%;
    height: 300px;
    object-fit: contain; /* Keeps whole pack visible */
    background-color: #f9f9f9;
    padding: 10px;
}

.product-info {
    padding: 20px;
}

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

.price {
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1.2rem;
    display: block;
    margin: 10px 0;
}

/* TABLES (For Nutrition) */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* CONTACT FORM */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* FOOTER */
footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 40px 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: var(--primary-green);
}

.footer-section p, .footer-section a {
    color: #ddd;
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* Responsive Mobile Fixes */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .nav-links { display: none; } /* In a real site, add a hamburger menu script */
}