@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

:root {
    --primary-color: #2c3e50; /* Dark blue/grey for text and main elements */
    --secondary-color: #3498db; /* Blue for accents and buttons */
    --accent-color: #e74c3c; /* Red for highlights or errors (if any) */
    --background-color: #ecf0f1; /* Light grey for overall background */
    --text-color: #34495e; /* Darker grey for body text */
    --light-text-color: #f8f8f8; /* Very light grey for text on dark backgrounds */
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
}

header {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 1em 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.hero {
    background: url('img/canola/field-of-yellow-canola-1461964578k9Z.jpg') no-repeat center center/cover;
    color: var(--light-text-color);
    text-align: center;
    padding: 100px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7); /* Increased overlay for better text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 0.5em;
    color: var(--light-text-color); /* Ensure heading is light on dark background */
    animation: fadeInDown 1s ease-out;
    color: var(--secondary-color);
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 1.5em;
    color: var(--light-text-color); /* Ensure paragraph is light on dark background */
    animation: fadeInUp 1s ease-out;
}

.button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    animation: zoomIn 1s ease-out;
    margin: 0 10px;
}

.button:hover {
    background-color: #2980b9; /* A darker shade of secondary color */
}

.button-secondary {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border: 1px solid var(--secondary-color);
}

.button-secondary:hover {
    background-color: #34495e; /* A slightly lighter shade of primary-color for hover */
    border-color: var(--secondary-color);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); /* Adjusted for 2x2 layout */
    gap: 2em; /* Increased gap for better separation */
    padding: 2em;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-group {
    background-color: var(--light-text-color);
    padding: 1.5em;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.gallery-group h2 {
    color: var(--primary-color);
    margin-bottom: 0.8em;
}

.gallery-group p {
    margin-bottom: 1.5em;
    line-height: 1.5;
}

.images-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Changed to 2x2 layout */
    gap: 1em;
    margin-top: 1em;
}

.image-gallery img {
    width: 100%; /* Images take full width of their grid area */
    height: 200px; /* Fixed height for uniformity */
    object-fit: cover;
    border: 1px solid #c0c0c0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

footer {
    text-align: center;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 1em 0;
}

.contact-info {
    text-align: center;
}

.contact-info h3 {
    color: var(--secondary-color); /* Improve contrast for the heading */
}

.contact-info a {
    color: var(--light-text-color); /* Changed for better contrast on dark background */
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--secondary-color); /* Hover color can still be secondary */
    text-decoration: underline;
}

.product-quality {
    background-color: var(--light-text-color);
    padding: 3em 1em;
    text-align: center;
}

.product-quality h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 1em;
}

.product-quality p {
    max-width: 800px;
    margin: 0 auto 1em auto;
    line-height: 1.6;
    font-size: 1.1em;
    color: var(--text-color);
}

.product-quality .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1em;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1em;
    }

    .button {
        padding: 8px 15px;
        margin: 0 5px;
    }

    .image-gallery {
        grid-template-columns: 1fr; /* Single column for gallery groups on mobile */
        padding: 1em;
        gap: 1.5em;
    }

    .gallery-group {
        padding: 1em;
    }

    .images-container {
        grid-template-columns: 1fr; /* Single column for images within groups on mobile */
    }

    .image-gallery img {
        height: 150px; /* Adjusted height for mobile images */
    }

    .product-quality h2 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 0.9em;
    }

    .button {
        display: block;
        margin: 10px auto;
    }
}
