:root {
    --bs-primary: #2c5e2e; /* Forest Green */
    --bs-secondary: #cba135; /* Harvest Gold */
    --bs-dark: #1a1a1a;
    --bs-light: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Navbar */
#mainNav {
    background-color: transparent;
    box-shadow: none;
    transition: background-color 0.2s ease;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

#mainNav.navbar-shrink {
    background-color: var(--bs-primary);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

#mainNav .navbar-brand {
    font-weight: 700;
}

#mainNav .nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

#mainNav .nav-link:hover, #mainNav .nav-link.active {
    color: #fff;
}

/* Header / Masthead */
header.masthead {
    padding-top: 10rem;
    padding-bottom: calc(10rem - 4.5rem);
    background: linear-gradient(to bottom, rgba(44, 56, 94, 0) 0%, rgba(44, 94, 46, 0.6) 100%), url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80'); /* Placeholder farm image */
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

header.masthead h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

@media (min-width: 992px) {
    header.masthead {
        height: 100vh;
        min-height: 650px;
        padding-top: 0;
        padding-bottom: 0;
    }
    header.masthead h1 {
        font-size: 4rem;
    }
}

/* Dividers */
hr.divider {
    height: 0.2rem;
    max-width: 3.25rem;
    margin: 1.5rem auto;
    background-color: var(--bs-secondary);
    opacity: 1;
}

hr.divider-dark {
    background-color: var(--bs-primary);
}

/* Sections */
.page-section {
    padding: 6rem 0;
}

.text-primary {
    color: var(--bs-primary) !important;
}

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #1e4220;
    border-color: #1e4220;
}

.btn-xl {
    padding: 1.25rem 2.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-radius: 10rem;
}

/* Gallery */
.gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.5rem;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Using pseudo-elements to darken on hover to make text pop if we had text overlay, 
   but currently we just have span text centered. */
.gallery-item span {
    z-index: 1;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover span {
    opacity: 1;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover::before {
    opacity: 1;
}

/* Map */
#map {
    z-index: 1; /* Ensure map stays below fixed navbar if issues arise */
}

/* Form Styles */
.form-floating input:focus, .form-floating textarea:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(44, 94, 46, 0.25);
}
