/* =========================
   RESET & GLOBALS
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand-green: #1f6f43;
    --brand-green-dark: #175835;
    --brand-green-light: #e6f3ec;
}

body {
    background-color: #fbf4dc;
    font-family: "Cardo", serif;
}

footer {
    background-color: #f9e5a3;
}

/* =========================
   TYPOGRAPHY
========================= */
h1,
h2,
h3,
h4,
h5 {
    font-family: "Ubuntu", sans-serif;
    font-weight: 800;
}

h1,
h2 {
    text-align: left;
}

.index-header {
    text-align: center;
}

.kentucky-index-header {
    text-align: right;
}

p,
label {
    font-size: 24px;
}

label {
    font-weight: 800;
}

/* =========================
   LAYOUT CENTERING
========================= */
.content-wrap {
    max-width: 1200px;
    margin-inline: auto;
}

/* =========================
   NAVBAR / OFFCANVAS
========================= */
.custom-green,
.offcanvas-green {
    background-color: #14532d !important;
}

.offcanvas-green .nav-link,
.offcanvas-green .offcanvas-title,
.offcanvas-green .dropdown-item {
    color: #ffffff;
}

.offcanvas-green .dropdown-item:hover {
    background-color: #157347;
}

.offcanvas-green .dropdown-menu {
    background-color: #14532d !important;
    border: none;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.9);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* =========================
   SPACING
========================= */
.hero,
.block,
.kentucky-block {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

/* =========================
   MENU BOXES
========================= */
.menu-boxes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.menu-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.menu-box:hover {
    background-color: rgba(255, 255, 255, 0.18);
    transform: translateX(4px);
}

.dropdown-toggle-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    cursor: pointer;
}

.arrow {
    margin-left: auto;
    transition: transform 0.2s ease;
}

.dropdown-box.show .arrow {
    transform: rotate(180deg);
}

/* =========================
   BUTTONS
========================= */
.btn-outline-primary {
    --bs-btn-color: var(--brand-green);
    --bs-btn-border-color: var(--brand-green);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand-green);
    --bs-btn-active-bg: var(--brand-green-dark);
    --bs-btn-active-border-color: var(--brand-green-dark);
}

.btn-secondary {
    --bs-btn-bg: #14532d;
    --bs-btn-border-color: #14532d;
    --bs-btn-hover-bg: #86efac;
    --bs-btn-hover-color: #14532d;
}

/* =========================
   IMAGES
========================= */
.hero-img,
.block-img {
    width: 100%;
    max-width: 420px;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}

.modal-img {
    flex: 0 0 45%;
    max-height: 70vh;
    width: 100%;
    object-fit: fill;
    border-radius: 12px;
    cursor: default !important;
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================
   HERO & CONTENT BLOCKS
========================= */
.hero,
.block,
.kentucky-block {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.block-txt,
.kentucky-block-txt {
    max-width: 600px;
}

.block-nontext,
.hero-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* =========================
   BUSINESS CARDS
========================= */
.business-card,
.business-card * {
    cursor: pointer !important;
}

.business-card {
    transition: transform 0.3s ease;
}

.business-card:hover {
    transform: scale(1.05);
}


/* =========================
   STANDARDIZED CARD SIZE
========================= */
.image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    /* background-color: #ffffff; was #f5f5f5 — swap to pure white */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #1f6b3a;
    /* no filter, no mix-blend-mode, no backdrop-filter */
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.business-card:hover img {
    transform: scale(1.1);
}

/* =========================
   OVERLAY
========================= */

.image-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;

    opacity: 0;
    /* hidden by default */
    transition: opacity 0.3s ease;
}

.image-wrapper:hover .image-overlay {
    opacity: 1;
    /* show on hover */
}

.image-overlay span {
    color: #fff;
    font-family: "Ubuntu", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    max-width: 90%;
    word-break: break-word;
    text-align: center;
    padding: 10px 14px;
    border-radius: 6px;

    /* text background only */
    background: rgba(0, 0, 0, 0.65);
}

/* =========================
   CONTACT FORM
========================= */
form {
    max-width: 500px;
    margin: 50px auto;
    padding: 2rem;
    border: 5px solid #14532d;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-control:focus {
    border-color: #14532d;
    box-shadow: 0 0 0 0.2rem rgba(20, 83, 45, 0.25);
}

/* =========================
   MODAL
========================= */
.modal-header {
    background-color: var(--brand-green);
    color: #fff;
    border-bottom: none;
}

.modal-dialog {
    max-height: 90vh;
}

.modal-content {
    background-color: var(--brand-green-light);
}

.modal-body.modal-flex {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    overflow-y: auto;
}

.modal-details {
    flex: 1;
}

.modal-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}



.contact-link {
    margin-top: 0.5rem;
    font-size: 18px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {

    .hero,
    .block,
    .kentucky-block {
        flex-direction: column;
        text-align: center;
    }

    p {
        font-size: 14px;
    }

    h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 18px;
    }

    h3,
    h4,
    label {
        font-size: 16px;
    }

    h1,
    h2,
    .kentucky-index-header {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .modal-body.modal-flex {
        flex-direction: column;
        text-align: center;
    }

    .modal-img {
        max-width: 100%;
        height: auto;
    }



}


@media (max-width: 576px) {
    .image-overlay span {
        font-size: 0.8rem;
        line-height: 1.15;
        padding: 8px 12px;
    }
}