/* ==========================================================================
   Global & Typography
   ========================================================================== */
body {
    font-family: 'Raleway', sans-serif;
}

.h2, h2 {
    font-size: calc(1.325rem + .9vw);
    text-transform: uppercase;
    font-weight: 700;
}

.h3, h3 {
    font-size: 1.75rem;
    font-weight: bold;
}

.h4, h4 {
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    border: none;
}

.h5, h5 {
    font-size: 1.25rem;
    font-weight: bold;
}

.dancing-script {
    font-family: "Dancing Script", cursive;
    text-transform: unset;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

/* ==========================================================================
   Layout & Components
   ========================================================================== */
a.nav-link {
    font-size: 1.2em;
    font-weight: bold;
}

a.link {
    color: black;
}

a.navbar-brand img {
    width: 140px;
}

.outlineBox {
    border: 1px solid;
    text-align: left;
    padding: 1em;
}

.sus {
    background-image: url(images/cup.jpg);
    background-repeat: no-repeat;
    background-position: right;
    background-size: 79px;
}

.farm {
    background-image: url(images/farmer.jpg);
    background-repeat: no-repeat;
    background-position: right;
    background-size: 79px;
}

.section-padding,
.container {
    padding: 50px 0;
}

.coffee-img {
    max-width: 100%;
    height: auto;
}

.contact-form {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

/* Buttons */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #447120cc;
    --bs-btn-border-color: #405a2e;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #364d26;
    --bs-btn-hover-border-color: #364d26;
    --bs-btn-focus-shadow-rgb: 49,132,253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #364d26;
    --bs-btn-active-border-color: #364d26;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #364d26;
    --bs-btn-disabled-border-color: #364d26;
    border-radius: 0;
}

.btn-secondary {
    border-radius: 0;
}

/* Footer */
footer {
    background-color: #21280f;
    color: white;
    padding: 20px 0;
    font-family: 'Raleway', sans-serif;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-address { width: 50%; text-align: left; }
.footer-logo    { width: 50%; text-align: right; }
.footer-logo img { max-width: 150px; height: auto; }

/* Dark sections */
.dark-section {
    background-color: #242c0d;
    color: white;
    padding: 50px 0;
}

.dark-section h2,
.dark-section p { color: white; }

/* ==========================================================================
   Carousel / Slider (merged & cleaned)
   ========================================================================== */
.carousel,
.carousel-inner { width: 100%; height: 100%; }

.carousel-item {
    height: 550px;
    position: relative;
}

.carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.slider-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    nontrivial: 1;
}

/* Caption container (left-side version) */
.carousel-caption-container {
    height: 79%;
    width: 50%;
    z-index: 1000;
    position: absolute;
    left: 0; top: 0;
    display: flex;
    align-items: center;
    padding: 20px;
    margin: 2em;
    background: rgb(99 134 74 / 73%);
    color: white;
    font-family: 'Raleway', sans-serif;
    opacity: 0;
    animation: delayedFadeIn 1s ease-in-out forwards;
    animation-delay: 0.5s;
    border-radius: 11% 35% 19% 19% / 38% 15% 44% 16%;
}

/* Standard centered caption (used on most pages) */
.carousel-caption {
    position: absolute;
    top: 30%;
    left: 13%;
    padding: 2em;
    color: #fff;
    text-align: center;
    z-index: 10;
    animation: fadeInUp 1s ease-in-out both;
}

.carousel-caption h2 { font-size: 2.5em; }
.carousel-caption p  { font-size: 1.2em; }

/* Slider element (full-screen hero style) */
.slider-element {
    position: relative;
    height: 500px;
    background-color: #f8f9fa;
    overflow: hidden;
}

.slider-element .carousel-item { height: 500px; }

.slider-element img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
    z-index: 1;
    opacity: 0;
    animation: fadeInImage 1s ease-in-out forwards;
}

.slider-element .carousel-item.active img {
    animation: fadeInImage 1s ease-in-out forwards;
}

.slider-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    opacity: 0;
    animation: fadeInText 1s ease-in-out forwards;
}

.slider-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.slider-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.slider-content .btn-primary {
    font-size: 1.1rem;
    padding: 10px 20px;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes delayedFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInImage {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

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

/* Scroll animations */
.animate-on-scroll { opacity: 0; transition: all 1s ease-in-out; }
.animate-on-scroll.visible { opacity: 1; }

.slide-in-left  { transform: translateX(-100%); }
.slide-in-left.visible  { transform: translateX(0); }

.slide-in-right { transform: translateX(100%); }
.slide-in-right.visible { transform: translateX(0); }

.slide-down     { transform: translateY(-100%); }
.slide-down.visible     { transform: translateY(0); }

.fade-in        { opacity: 0; }
.fade-in.visible        { opacity: 1; }

/* Counter */
.counter {
    display: inline-block;
    font-weight: bold;
    font-size: 2em;
}

.table-counter td {
    padding: 10px;
    vertical-align: middle;
}
.navbar>.container, .navbar>.container-fluid, .navbar>.container-lg, .navbar>.container-md, .navbar>.container-sm, .navbar>.container-xl, .navbar>.container-xxl {

    padding: 0px 1em !important;
}
/* ==========================================================================
   Media Queries (consolidated & deduped)
   ========================================================================== */
@media (max-width: 767.98px) {
    .carousel-caption-container {
        width: 100%;
        height: 50%;
        top: auto;
        bottom: 0;
        margin: 0;
        padding: 15px;
    }

    .carousel-item,
    .slider-element .carousel-item {
        height: 400px;
    }

    .carousel-caption {
        width: 85%;
        padding: 1em;
        left: 7% !important;
        top: 20% !important;
    }

    .carousel-caption h2 {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .carousel-caption {
        width: 86%;
        left: 6%;
        top: 23%;
    }

    .carousel-caption h2 {
        font-size: 2.1em;
    }
}