: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;
}

.page-section + .page-section {
    border-top: 1px solid rgba(44, 94, 46, 0.12);
}

#trabalhe-conosco.page-section {
    padding: 3.5rem 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:focus-visible {
    outline: 3px solid rgba(203, 161, 53, 0.85);
    outline-offset: 2px;
}

.gallery-item::after {
    content: "Zoom";
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.35rem 0.55rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 2;
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.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 */
}

.gsv-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.gsv-lightbox[aria-hidden="false"] {
    display: block;
}

.gsv-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gsv-lightbox[aria-hidden="false"] .gsv-lightbox__backdrop {
    opacity: 1;
}

.gsv-lightbox__dialog {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transform: scale(0.985);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.gsv-lightbox[aria-hidden="false"] .gsv-lightbox__dialog {
    opacity: 1;
    transform: scale(1);
}

.gsv-lightbox__figure {
    margin: 0;
    max-width: min(1200px, 92vw);
    max-height: 92vh;
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 0.75rem;
    width: 100%;
    align-items: center;
    justify-items: center;
    pointer-events: auto;
}

.gsv-lightbox__img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 85vh;
    border-radius: 0.75rem;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.03);
}

.gsv-lightbox__caption {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    text-align: center;
    min-height: 1.2rem;
}

.gsv-lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    pointer-events: auto;
}

.gsv-lightbox__close:hover,
.gsv-lightbox__close:focus-visible {
    background: rgba(0, 0, 0, 0.7);
}

.gsv-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.5rem;
    display: grid;
    place-items: center;
    cursor: pointer;
    pointer-events: auto;
}

.gsv-lightbox__nav:hover,
.gsv-lightbox__nav:focus-visible {
    background: rgba(0, 0, 0, 0.7);
}

.gsv-lightbox__nav--prev {
    left: 1rem;
}

.gsv-lightbox__nav--next {
    right: 1rem;
}

body.gsv-lightbox-open {
    overflow: hidden;
}

/* 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);
}
