﻿/* Base Styles, Mobile First Design */
:root {
    --primary-color: #4a934a;
    --secondary-color: #3a7b3a;
    --accent-color: #6bbf6b;
    --text-color: #333;
    --light-text: #f8f8f8;
    --background: #f5f5f5;
    --card-bg: #fff;
    --shadow: 0 2px 5px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 15px rgba(0,0,0,0.1);
    --column-gap: 2rem;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Three Column Layout */
.three-column-layout {
    display: flex;
    flex-direction: column;
    gap: var(--column-gap);
    align-items: stretch;
}

.column {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: var(--shadow);
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Responsive Columns */
@media (min-width: 600px) {
    .three-column-layout {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

        .three-column-layout.two-columns-tablet .column:first-child {
            grid-column: 1 / -1;
        }
}

@media (min-width: 992px) {
    .three-column-layout {
        grid-template-columns: repeat(3, 1fr);
    }

        .three-column-layout.two-columns-desktop {
            grid-template-columns: repeat(2, 1fr);
        }
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 1.5rem 0;
    text-align: center;
}

/* Navigation Menu */
nav {
    background-color: var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.5rem 0;
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.nav-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    min-width: min-content; 
}

    .nav-menu li {
        flex: 0 0 auto; 
    }

    .nav-menu a {
        display: block;
        color: var(--light-text);
        text-decoration: none;
        padding: 0.5rem 0.75rem;
        text-align: center;
        background-color: var(--primary-color);
        border-radius: 4px;
        transition: all 0.3s ease;
        font-weight: 500;
        font-size: 0.85rem;
        white-space: nowrap; 
    }

        .nav-menu a:hover {
            background-color: var(--accent-color);
            transform: translateY(-2px);
        }

    .nav-menu .active a {
        background-color: var(--accent-color);
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

/* Navigation */
@media (max-width: 767px) {
    nav {
        padding: 0.5rem 0;
    }

    .nav-menu {
        gap: 0.3rem;
        padding-bottom: 0.2rem; 
    }

        .nav-menu a {
            padding: 0.4rem 0.6rem;
            font-size: 0.8rem;
        }
}

@media (min-width: 768px) {
    .nav-menu a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 992px) {
    .nav-menu a {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
}

/* Main Content */
main {
    padding: 1.5rem 0;
    flex: 1;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Spacing */
.span-2 {
    grid-column: span 2;
}

.span-3 {
    grid-column: span 3;
}

.text-center {
    text-align: center;
}

/* Food Grid System */
.food-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.food-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
    overflow: hidden;
}

    .food-item:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-hover);
    }

    .food-item h3 {
        color: var(--primary-color);
        margin: 0.5rem 1.5rem 0.75rem;
        font-size: 1.25rem;
    }

    .food-item p {
        margin: 0 1.5rem 1.5rem;
        color: var(--text-color);
        line-height: 1.5;
    }

/* Food Images */
.food-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px 6px 0 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: block;
}

/* Card Styles */
.benefit-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

.benefit-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0 0 5px 5px;
    margin-top: auto;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.benefit-card h2 {
    padding: 1.5rem 1.5rem 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.benefit-card p {
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.5;
}

/* Processed Foods Section */
.processed-foods-header {
    margin-top: 1rem;
    padding-top: 2rem;
    border-top: none;
}

.processed-intro {
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

    .btn.secondary {
        background-color: var(--secondary-color);
    }

    .btn.pop-out, .org-link.pop-out {
        transition: all 0.3s ease;
        transform: scale(1);
    }

        .btn.pop-out:hover, .org-link.pop-out:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 1rem 0;
}

    .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

/* Organization Links */
.org-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.org-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

    .org-link:hover {
        background-color: var(--accent-color);
        transform: translateY(-2px);
    }

/* Responsive Design */
@media (min-width: 600px) {
    body {
        font-size: 1.05rem;
    }

    .column {
        padding: 1.75rem;
    }

    .food-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .food-image, .benefit-image {
        height: 180px;
    }
}

@media (min-width: 900px) {
    .food-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .food-image, .benefit-image {
        height: 160px;
    }
}

@media (min-width: 768px) {
    .cta-buttons {
        display: flex;
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 599px) {
    .food-image, .benefit-image {
        height: 160px;
    }
}

@media (min-width: 1200px) {
    .benefit-image {
        height: 200px;
    }
}

/* Labeling Images Styles */
.labeling-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.label-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

    .label-image:hover {
        transform: scale(1.03);
        box-shadow: var(--shadow-hover);
    }

@media (max-width: 600px) {
    .labeling-images {
        grid-template-columns: 1fr;
    }
}
