﻿:root {
    /* Primary Brand Colors */
    --color-red-barn: #b2322f; /* Barn red */
    --color-grass-green: #7cbc42; /* Bright grass green */
    --color-sky-blue: #4ec1f0; /* Cheerful sky blue */
    /* Secondary Supporting Colors */
    --color-mud-brown: #6e442a; /* Pig mud patch */
    --color-pig-pink: #d68a5e; /* Pig skin tone */
    --color-pathway-tan: #d8a65e; /* Pathway in foreground */
    /* Accent & Text */
    --color-fence-beige: #e4c79d; /* Wooden fence */
    --color-tree-green: #2e6e2b; /* Darker tree tone */
    --color-white-text: #ffffff; /* Title/overlay text */
    /* Primary Colors - Earth Tones */
    --color-heading: #D03F02; /* Warm Clay */
    --color-primary: #7cbc42; /* Warm Clay */
    --color-primary-downtone: #639635; /* Warm Clay */
    --color-primary-text: #ffffff; /* Warm Clay */
    --color-secondary: #7cbc42; /* Sage Green */
    --color-accent: #4ec1f0; /* Golden Wheat */
    /* Supporting Neutrals */
    --color-light-bg: #6e442a;
    --color-dark-text: #d68a5e;
    --color-muted-text: #d8a65e;
    /* UI State Colors */
    --color-border: #e4c79d;
    --color-hover: #2e6e2b;
    --color-button-text: #ffffff;
    /* Typography */
    --font-family-base: 'Poppins', 'Segoe UI', sans-serif;
    --font-family-heading-large: 'Poppins', 'Segoe UI', sans-serif;
}

#site-wrapper {
    background-image: url('../img/background.svg'); /* Adjust if needed */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    width: 100%;
    min-height: 100vh;
    display: flex; /* Ensure flexbox for stacking */
    flex-direction: column; /* Stack children vertically */
}

.content {
    flex-grow: 1; /* This makes the content area expand and push the footer down */
}

header {
    /* background-color: var(--color-red-barn);*/
    color: var(--color-white-text);
    /* Ensure header takes its natural space */
    flex-shrink: 0; /* Prevent header from shrinking */
}

main {
    width: 100%;
    flex-grow: 1; /* Allow main to take up available space */
}

footer {
    width: 100%;
    flex-shrink: 0; /* Prevent footer from shrinking */
}

tr[data-href] {
    cursor: pointer;
}

/* Global Styles */
body {
    font-family: var(--font-family-base);
    background-color: var(--color-sky-blue);
    color: var(--color-heading);
    line-height: 1.4;
}

h2 {
    font-family: var(--font-family-heading-large);
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

    a:hover {
        color: var(--color-hover);
    }

.text-heading {
    color: var(--color-heading);
}

/* Bootstrap Fixes */
.form-inline .btn-link {
    line-height: 1.4; /* Adjust as needed */
}
.fs-8 {
    font-size: 0.85rem !important;
}

/* Header */
.site-title {
    font-size: 2rem;
    margin: 0;
}

.logo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid var(--color-primary);
    background-color: var(--color-light-bg);
    border-radius: 50%;
}

/* Hero Section */
.hero {
    min-height: 550px; /* Use min-height for desktop to allow content to push it taller */
    background-size: cover;
    background-position: center;
    position: relative;
}

    .hero::after {
        content: "";
        position: absolute;
        inset: 0;
    }

    .hero > .container {
        position: relative;
        z-index: 2;
    }

    .hero p.lead {
        font-size: 1.7rem;
        color: #fefae0;
    }

.hero-section {
    background-color: var(--color-grass-green);
    color: var(--color-white-text);
}

/* Media query for mobile devices */
@media (max-width: 767.98px) {
    .hero {
        min-height: 350px; /* Adjusted min-height for mobile */
        height: auto; /* Allow height to adjust based on content */
        padding-top: 20px; /* Add padding for content */
        padding-bottom: 20px;
    }

        .hero .col-lg-6.col-sm-12:last-child {
            margin-top: 20px; /* Add space between text and image on mobile */
        }
        /* Adjust font sizes for mobile to prevent overflow if needed */
        .hero h2.display-2 {
            font-size: 3rem; /* Example: adjust font size for smaller screens */
        }

        .hero p.lead {
            font-size: 1.2rem; /* Example: adjust font size for smaller screens */
        }
}

/* Buttons */
.btn-warning {
    background-color: var(--color-accent);
    border: none;
    color: var(--color-button-text);
}

    .btn-warning:hover {
        background-color: var(--color-hover);
        color: var(--color-button-text);
    }

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-primary-text);
}

    .btn-primary:hover {
        background-color: var(--color-primary-downtone);
        border-color: var(--color-primary-downtone);
    }

/* Section Headings */
section h2 {
    /* color: var(--color-primary);*/
}

/* Card Styles */
.card {
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--color-heading);
}

.card-text {
    font-size: 1.2rem;
    color: var(--color-muted-text);
}

.card-img-top {
    object-fit: cover;
    height: 400px;
}

/* Footer */
footer {
    background-color: var(--color-primary) !important;
    color: white;
    padding: 1rem 1rem
}

    footer p {
        margin: 0;
        font-size: 1rem;
    }

    footer a {
        color: #fff;
        text-decoration: underline;
    }

        footer a:hover {
            color: var(--color-accent);
            text-decoration: none;
        }

/* Utility */
.bg-primary {
    background-color: var(--color-primary) !important;
}

.bg-secondary {
    background-color: var(--color-secondary) !important;
}

.text-accent {
    color: var(--color-accent);
}

.card-img-wrapper {
    height: 250px; /* SHRINK THIS VALUE to make the image area smaller */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
    border-top-left-radius: calc(0.3rem - 1px);
    border-top-right-radius: calc(0.3rem - 1px);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
