/* General Body & Typography */
:root {
    --primary-color: #388E3C; /* A rich, earthy green */
    --secondary-color: #FBC02D; /* A warm, inviting gold/yellow */
    --accent-color: #8D6E63; /* A natural, light brown for subtle accents */
    --text-color: #333333; /* Dark grey for readability */
    --light-text-color: #ffffff; /* White for contrasting backgrounds */
    --background-light: #F9FBE7; /* Very light cream/green for soft backgrounds */
    --background-dark: #212121; /* Dark grey for footers and strong contrast */
    --card-background: #ffffff;
    --border-color: #e0e0e0;
    --hover-color: #4CAF50; /* A slightly brighter green for interactive elements */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif; /* Using a modern, clean font */
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-light);
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif; /* A more distinct font for headings */
    margin-bottom: 15px;
    color: var(--primary-color);
    line-height: 1.2;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; color: var(--text-color); text-align: center; margin-bottom: 40px;}
h3 { font-size: 1.8em; color: var(--primary-color); }
h4 { font-size: 1.4em; }
p { margin-bottom: 10px; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--hover-color);
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--light-text-color);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95em;
}
.btn:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
    color: var(--light-text-color);
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.85em;
    background: var(--secondary-color);
    color: var(--text-color);
    border-radius: 3px;
    transition: background 0.3s ease;
}
.btn-small:hover {
    background: darken(var(--secondary-color), 10%); /* This won't work in plain CSS, but illustrates intent */
    background: #e0a300; /* Manual darker shade */
    color: var(--text-color);
}

/* Header & Navigation */
header {
    background: var(--background-dark);
    color: var(--light-text-color);
    padding: 15px 0;
    border-bottom: 4px solid var(--primary-color);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

.logo h1 {
    color: var(--light-text-color);
    margin: 0;
    font-size: 2.5em;
}
.logo h1:hover {
    color: var(--secondary-color);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--light-text-color);
    font-weight: bold;
    padding: 5px 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* Hero Section - Homepage */
.hero {
    background: url('https://via.placeholder.com/1500x600/388E3C/FFFFFF?text=Farm+Landscape') no-repeat center center/cover;
    color: var(--light-text-color);
    text-align: center;
    padding: 100px 20px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--light-text-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero p {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

/* Intro Cards Section */
.intro-cards {
    padding: 60px 0;
    background-color: var(--background-light);
}

.intro-cards .container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.intro-cards .card {
    background: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intro-cards .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.intro-cards .card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.intro-cards .card p {
    margin-bottom: 20px;
    color: #666;
}

/* Featured Products Section */
.featured-products {
    background-color: var(--background-light);
    padding: 80px 0;
    text-align: center;
}

.featured-products h2 {
    color: var(--primary-color);
    margin-bottom: 50px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-item {
    background: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.product-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.product-item h3 {
    color: var(--primary-color);
    margin: 20px 20px 10px;
    font-size: 1.6em;
}

.product-item p {
    color: #666;
    margin: 0 20px 20px;
    font-size: 0.95em;
}

/* Call to Action Section */
.call-to-action {
    background: var(--primary-color);
    color: var(--light-text-color);
    text-align: center;
    padding: 70px 20px;
    margin-top: 60px;
}

.call-to-action h2 {
    color: var(--light-text-color);
    font-size: 2.5em;
    margin-bottom: 20px;
}

.call-to-action p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.call-to-action .btn {
    background: var(--secondary-color);
    color: var(--text-color);
}

.call-to-action .btn:hover {
    background: var(--hover-color);
    color: var(--light-text-color);
}

/* Footer */
footer {
    background: var(--background-dark);
    color: var(--light-text-color);
    padding: 60px 0 20px;
    font-size: 0.95em;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.3em;
}

.footer-section p {
    color: #ccc;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.social-icons a {
    color: var(--light-text-color);
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--secondary-color);
}

.contact-info p {
    margin-bottom: 10px;
    color: #ccc;
}

.contact-info i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.85em;
}

/* Page Hero Sections (About, Livestock, Transport, Contact) */
.page-hero {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    text-align: center;
    padding: 80px 20px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="10" fill="rgba(255,255,255,0.1)"/></svg>'); /* Subtle pattern */
    background-size: 50px 50px;
    opacity: 0.3;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h2 {
    font-size: 3em;
    color: var(--light-text-color);
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto;
}

/* Specific Page Hero Backgrounds */
.about-hero { background-image: linear-gradient(rgba(56, 142, 60, 0.7), rgba(56, 142, 60, 0.7)), url('https://via.placeholder.com/1500x400/388E3C/FFFFFF?text=About+Us'); background-size: cover; background-position: center; }
.livestock-hero { background-image: linear-gradient(rgba(56, 142, 60, 0.7), rgba(56, 142, 60, 0.7)), url('https://via.placeholder.com/1500x400/FBC02D/333333?text=Our+Animals'); background-size: cover; background-position: center; }
.transport-hero { background-image: linear-gradient(rgba(56, 142, 60, 0.7), rgba(56, 142, 60, 0.7)), url('https://via.placeholder.com/1500x400/8D6E63/FFFFFF?text=Transport'); background-size: cover; background-position: center; }
.contact-hero { background-image: linear-gradient(rgba(56, 142, 60, 0.7), rgba(56, 142, 60, 0.7)), url('https://via.placeholder.com/1500x400/388E3C/FFFFFF?text=Contact+Us'); background-size: cover; background-position: center; }


/* Content Sections for About/Transportation */
.content-section {
    padding: 80px 0;
    background-color: var(--background-light);
}

.content-section .container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.content-section.reverse .container {
    flex-direction: row-reverse;
}

.content-section .text-content {
    flex: 1;
    min-width: 300px;
}

.content-section .text-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.content-section .text-content p {
    color: #555;
    margin-bottom: 15px;
}

.content-section .image-content {
    flex: 1;
    min-width: 300px;
}

.content-section .image-content img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* About Page - Values Section */
.values-section {
    background-color: #f0f4e9; /* Slightly different light background */
    padding: 80px 0;
    text-align: center;
}

.values-section h2 {
    margin-bottom: 50px;
    color: var(--primary-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-item {
    background: var(--card-background);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.value-item i {
    font-size: 3em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.value-item h3 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.value-item p {
    color: #666;
}

/* Livestock Page - Categories */
.livestock-gallery {
    padding: 80px 0;
    background-color: var(--background-light);
}

.livestock-gallery h2 {
    color: var(--primary-color);
    margin-bottom: 50px;
}

.livestock-category {
    background: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin-bottom: 60px;
}

.livestock-category h3 {
    color: var(--primary-color);
    font-size: 2.2em;
    margin-bottom: 20px;
    text-align: center;
}

.livestock-category > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555;
    font-size: 1.1em;
}

.animal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.animal-item {
    background: #fdfdfd;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.animal-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.animal-item img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.animal-item h4 {
    color: var(--primary-color);
    margin: 15px 10px 5px;
    font-size: 1.3em;
}

.animal-item p {
    color: #777;
    margin: 0 10px 15px;
    font-size: 0.9em;
}

/* Transportation Page - Features */
.transport-features {
    background-color: #f0f4e9;
    padding: 80px 0;
    text-align: center;
}

.transport-features h2 {
    margin-bottom: 50px;
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    background: var(--card-background);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.feature-item i {
    font-size: 3em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item p {
    color: #666;
}

/* Forms (Transportation Quote, Contact Form) */
.request-quote-form, .contact-form-section {
    padding: 80px 0;
    background-color: var(--background-light);
}

.request-quote-form h2, .contact-form-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.request-quote-form > p, .contact-form-section > p {
    text-align: center;
    margin-bottom: 40px;
    color: #555;
    font-size: 1.1em;
}

form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--card-background);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
    font-size: 1em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    color: var(--text-color);
    background-color: #fcfcfc;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(56, 142, 60, 0.2);
}

.form-group textarea {
    resize: vertical;
}

form button.btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    margin-top: 20px;
}

/* Contact Page - Details */
.contact-details {
    padding: 60px 0;
    background-color: var(--background-light);
    text-align: center;
}

.contact-details .container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.detail-item {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: var(--card-background);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-8px);
}

.detail-item i {
    font-size: 3.5em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.detail-item h3 {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.detail-item p {
    color: #666;
    font-size: 0.95em;
}

/* Contact Page - Map Section */
.map-section {
    padding: 80px 0;
    background-color: #f0f4e9;
}

.map-section h2 {
    color: var(--primary-color);
    margin-bottom: 40px;
}

.map-container {
    border: 5px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    border: none;
    width: 100%;
    min-height: 450px;
    display: block; /* Removes extra space below iframe */
}

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        width: 95%;
    }

    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    h3 { font-size: 1.6em; }

    header .container {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin-bottom: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 0 10px 10px;
    }

    .hero {
        padding: 80px 15px;
        min-height: 400px;
    }
    .hero h2 {
        font-size: 2.8em;
    }
    .hero p {
        font-size: 1.1em;
    }

    .intro-cards .container {
        flex-direction: column;
        align-items: center;
    }
    .intro-cards .card {
        max-width: 400px;
        width: 100%;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .content-section .container {
        flex-direction: column;
        text-align: center;
    }
    .content-section.reverse .container {
        flex-direction: column; /* Reset to column for small screens */
    }
    .content-section .image-content {
        margin-top: 30px;
    }
    .content-section.reverse .image-content {
        margin-bottom: 30px; /* Adjust margin for reverse order */
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        min-width: unset;
        width: 80%;
        max-width: 400px;
    }

    .social-icons {
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; margin-bottom: 30px;}
    h3 { font-size: 1.4em; }

    .hero {
        padding: 60px 15px;
        min-height: 350px;
    }
    .hero h2 {
        font-size: 2.2em;
    }
    .hero p {
        font-size: 1em;
    }

    nav ul li {
        margin: 0 8px 8px;
    }

    .page-hero {
        padding: 60px 15px;
        min-height: 250px;
    }
    .page-hero h2 {
        font-size: 2.5em;
    }
    .page-hero p {
        font-size: 1em;
    }

    .livestock-category {
        padding: 30px 20px;
    }

    .animal-grid, .values-grid, .features-grid {
        grid-template-columns: 1fr; /* Stack items */
    }

    .form-group input, .form-group textarea {
        padding: 10px;
    }

    form {
        padding: 30px;
    }

    .map-container iframe {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8em; }
    h2 { font-size: 1.5em; margin-bottom: 25px;}
    h3 { font-size: 1.2em; }

    nav ul {
        flex-direction: column;
        gap: 0;
    }
    nav ul li {
        margin: 5px 0;
    }

    .hero {
        padding: 40px 10px;
        min-height: 300px;
    }
    .hero h2 {
        font-size: 1.8em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .page-hero {
        padding: 40px 10px;
        min-height: 200px;
    }
    .page-hero h2 {
        font-size: 2em;
    }

    .footer-section {
        width: 100%;
    }
.logo-img {
    width: 80px;   /* adjust size */
    height: auto;
    margin-right: 10px;
}
.logo {
    display: flex;
    align-items: center;
}
}