/* Body text - Open Sans Light/Regular */
body,
p,
.text,
span,
div,
li {
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 400;
}

/* Hero H1 - Montserrat Bold */
h1,
.text-13,
.text-12,
.text-11 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700;
}

/* Section titles - Montserrat SemiBold */
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600;
}

/* Buttons and price - Montserrat Bold */
.btn,
.price,
.font-weight-bold {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700;
}

/* Strong/semibold - Montserrat SemiBold */
strong,
.font-weight-semibold {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600;
}

/* Vertical video lightbox sizing */
.barventory-video-modal {
    width: min(90vw, var(--barventory-video-max-width, 420px));
    max-width: var(--barventory-video-max-width, 420px);
    margin: 0 auto;
    background: transparent;
}

.barventory-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1080 / 2340;
    border-radius: 18px;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.barventory-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
}

/* PDF lightbox sizing */
.barventory-pdf-modal {
    width: min(94vw, 1100px);
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.barventory-pdf-frame {
    position: relative;
    width: 100%;
    height: min(90vh, 960px);
    background: #fff;
}

.barventory-pdf-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Center inline lightboxes */
.mfp-inline-holder .mfp-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mfp-inline-holder .mfp-container:before {
    content: none;
}

/* Footer column alignment on mobile */
.footer-links {
    text-align: left;
}

@media (max-width: 991px) {
    .footer-links .social-icons {
        justify-content: flex-start;
    }
}

/* Consistent spacing for the "Why Barventory is different" text block */
.barventory-feature-list h4 {
    margin: 18px 0 6px !important;
}

.barventory-feature-list h4:first-child {
    margin-top: 0 !important;
}

.barventory-feature-list p {
    margin: 0 0 6px !important;
}

.barventory-feature-list p:last-child {
    margin-bottom: 0 !important;
}

/* FAQ page: soften accordion question weight */
body.faq-page #examples .accordion .accordion-toggle {
    font-weight: 500 !important;
}

body.faq-page #examples .accordion .card-title {
    font-weight: 500;
}

/* Home page mobile menu: black/white palette */
@media (max-width: 991px) {
    body.barventory-home #header .header-btn-collapse-nav {
        background: #fff !important;
        color: #111 !important;
        border: 1px solid #111 !important;
    }

    body.barventory-home #header .header-nav-main,
    body.barventory-home #header .header-nav-main nav,
    body.barventory-home #header .header-nav-main nav>ul {
        background: #fff !important;
    }

    body.barventory-home #header .header-nav-main nav>ul {
        padding: 10px 0;
    }

    body.barventory-home #header .header-nav-main nav>ul>li {
        border-bottom: 1px solid rgba(17, 17, 17, 0.1);
    }

    body.barventory-home #header .header-nav-main nav>ul>li:last-child {
        border-bottom: 0;
    }

    body.barventory-home #header .header-nav-main nav>ul>li>a,
    body.barventory-home #header .header-nav-main nav>ul>li>a.dropdown-item {
        color: #111 !important;
        background: transparent !important;
    }

    body.barventory-home #header .header-nav-main nav>ul>li>a:hover,
    body.barventory-home #header .header-nav-main nav>ul>li>a:focus,
    body.barventory-home #header .header-nav-main nav>ul>li>a.active {
        background: #111 !important;
        color: #fff !important;
    }
}

/* Homepage conversion popup */
.barventory-home-popup[hidden] {
    display: none !important;
}

.barventory-home-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.barventory-home-popup.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.barventory-home-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.42);
    backdrop-filter: blur(3px);
}

.barventory-home-popup__dialog {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 32px 20px;
}

.barventory-home-popup__desktop,
.barventory-home-popup__mobile {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 246, 242, 0.96));
    border-radius: 28px;
    box-shadow: 0 28px 90px rgba(17, 17, 17, 0.18);
    border: 1px solid rgba(17, 17, 17, 0.06);
}

.barventory-home-popup__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #7b7b7b;
    font-size: 30px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(17, 17, 17, 0.1);
    transition: color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.barventory-home-popup__close:hover,
.barventory-home-popup__close:focus-visible {
    color: #111;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(17, 17, 17, 0.15);
}

.barventory-home-popup__close:focus-visible,
.barventory-home-popup__cta:focus-visible,
.barventory-home-popup__secondary a:focus-visible,
.barventory-home-popup__mobile-link:focus-visible {
    outline: 2px solid #ff8a00;
    outline-offset: 3px;
}

.barventory-home-popup__desktop {
    width: min(960px, calc(100vw - 40px));
    display: grid;
    grid-template-columns: minmax(280px, 0.92fr) minmax(340px, 1fr);
    overflow: hidden;
    transform: translateY(18px) scale(0.98);
    transition: transform 0.32s ease;
}

.barventory-home-popup.is-visible .barventory-home-popup__desktop {
    transform: translateY(0) scale(1);
}

.barventory-home-popup__media {
    background: radial-gradient(circle at top left, rgba(255, 174, 65, 0.18), transparent 55%), linear-gradient(180deg, #fff 0%, #f6f3ef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px 24px;
}

.barventory-home-popup__media img {
    width: 100%;
    max-width: 430px;
    height: auto;
    display: block;
}

.barventory-home-popup__content {
    padding: 56px 56px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.barventory-home-popup__eyebrow {
    margin: 0 0 14px;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #bb6a00;
    font-weight: 700;
}

.barventory-home-popup__title {
    margin: 0;
    color: #171b23;
    font-size: clamp(2rem, 2.5vw, 2.5rem);
    line-height: 1.1;
}

.barventory-home-popup__description {
    margin: 18px 0 0;
    color: #545861;
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 28rem;
}

.barventory-home-popup__cta {
    margin-top: 28px;
    align-self: flex-start;
    min-width: 220px;
    padding: 16px 30px;
    border-radius: 14px;
    font-size: 0.98rem;
    box-shadow: 0 16px 30px rgba(255, 138, 0, 0.24);
}

.barventory-home-popup__secondary {
    margin: 18px 0 0;
    color: #676d75;
    font-size: 0.98rem;
}

.barventory-home-popup__secondary a,
.barventory-home-popup__mobile-link {
    color: #ff8a00;
    text-decoration: none;
    font-weight: 700;
}

.barventory-home-popup__secondary a:hover,
.barventory-home-popup__mobile-link:hover {
    color: #d97300;
}

.barventory-home-popup__mobile {
    display: none;
}

body.barventory-home-popup-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .barventory-home-popup {
        display: flex;
        align-items: flex-end;
        pointer-events: none;
    }

    .barventory-home-popup__overlay {
        background: transparent;
        backdrop-filter: none;
        pointer-events: none;
    }

    .barventory-home-popup__dialog {
        width: 100%;
        align-items: flex-end;
        padding: 0;
        pointer-events: none;
    }

    .barventory-home-popup__desktop {
        display: none;
    }

    .barventory-home-popup__mobile {
        display: block;
        width: min(100%, 560px);
        margin: 0 auto;
        padding: 14px 18px 22px;
        border-radius: 28px 28px 0 0;
        transform: translateY(100%);
        transition: transform 0.34s ease;
        pointer-events: auto;
    }

    .barventory-home-popup.is-visible .barventory-home-popup__mobile {
        transform: translateY(0);
    }

    .barventory-home-popup__close--desktop {
        display: none;
    }

    .barventory-home-popup__mobile-handle {
        width: 56px;
        height: 5px;
        border-radius: 999px;
        background: rgba(17, 17, 17, 0.18);
        margin: 2px auto 18px;
    }

    .barventory-home-popup__mobile-header {
        display: grid;
        grid-template-columns: 64px 1fr;
        gap: 14px;
        align-items: center;
        padding-right: 42px;
        position: relative;
    }

    .barventory-home-popup__mobile-close {
        position: absolute;
        top: -2px;
        right: 0;
        width: 36px;
        height: 36px;
        border: 0;
        border-radius: 999px;
        background: transparent;
        color: #7b7b7b;
        font-size: 28px;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .barventory-home-popup__mobile-close:focus-visible {
        outline: 2px solid #ff8a00;
        outline-offset: 3px;
    }

    .barventory-home-popup__mobile-icon {
        width: 64px;
        height: 64px;
        border-radius: 18px;
        overflow: hidden;
        background: rgba(255, 138, 0, 0.08);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .barventory-home-popup__mobile-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: left center;
    }

    .barventory-home-popup__title--mobile {
        font-size: 1.65rem;
        line-height: 1.15;
    }

    .barventory-home-popup__description--mobile {
        margin-top: 8px;
        font-size: 1rem;
        line-height: 1.55;
    }

    .barventory-home-popup__cta--mobile {
        display: block;
        width: 100%;
        margin-top: 20px;
        text-align: center;
        min-width: 0;
    }

    .barventory-home-popup__mobile-link {
        display: block;
        margin-top: 14px;
        text-align: center;
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .barventory-home-popup,
    .barventory-home-popup__desktop,
    .barventory-home-popup__mobile,
    .barventory-home-popup__close,
    .barventory-home-popup__mobile-close {
        transition: none;
    }
}