/* Native ERP-synced inventory grid. This page deliberately owns its card
   layout instead of inheriting the portfolio masonry dimensions. */
.bsg-live-inventory {
    width: min(1380px, calc(100% - 80px));
    margin: 0 auto 50px;
    padding: 74px 0 30px;
    overflow: visible;
}

.bsg-inv-intro {
    margin: 0 0 54px;
    padding-bottom: 34px;
    border-bottom: 1px solid #dcd8d2;
}

.bsg-inv-eyebrow {
    position: relative;
    margin: 0 0 18px;
    padding-left: 45px;
    color: #118ed0;
    font: 600 12px/1.2 "Josefin Sans", sans-serif;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.bsg-inv-eyebrow::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 30px;
    height: 1px;
    background: #118ed0;
}

.bsg-inv-intro-row {
    display: grid;
    grid-template-columns: minmax(280px, .8fr) minmax(360px, 1fr);
    gap: 80px;
    align-items: end;
}

.bsg-inv-intro h2 {
    margin: 0;
    color: #171717;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1;
}

.bsg-inv-intro-row > p {
    max-width: 620px;
    margin: 0;
    color: #66615c;
    font-size: 16px;
    line-height: 1.7;
}

.bsg-inv-group > .bsg-inv-cat-title {
    display: flex;
    align-items: center;
    gap: 18px;
    clear: both;
    margin: 0 0 24px;
    color: #171717;
    font-size: 28px;
    line-height: 1.2;
}

.bsg-inv-group > .bsg-inv-cat-title::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #dcd8d2;
}

.bsg-live-inventory .bsg-inv-count {
    order: 2;
    color: #88827c;
    font: 500 12px/1 "Josefin Sans", sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.bsg-inv-group + .bsg-inv-group { margin-top: 54px; }

.bsg-inv-tools {
    display: grid;
    grid-template-columns: minmax(280px, .8fr) minmax(520px, 1.7fr);
    gap: 24px 34px;
    margin: 0 0 52px;
    padding: 28px;
    background: #f5f3f0;
    border: 1px solid #e1ddd7;
}

.bsg-inv-tools label > span,
.bsg-inv-filter-wrap > span {
    display: block;
    margin-bottom: 9px;
    color: #67615b;
    font: 600 11px/1.2 "Josefin Sans", sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.bsg-inv-search input {
    width: 100%;
    height: 48px;
    padding: 0 17px;
    color: #171717;
    background: #fff;
    border: 1px solid #d7d1ca;
    border-radius: 0;
    outline: none;
}

.bsg-inv-search input:focus { border-color: #118ed0; }

.bsg-inv-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.bsg-inv-filters button {
    min-height: 48px;
    padding: 0 14px;
    color: #36322f;
    background: #fff;
    border: 1px solid #d7d1ca;
    font: 600 12px/1 "Josefin Sans", sans-serif;
    cursor: pointer;
    transition: color .2s, background .2s, border-color .2s;
}

.bsg-inv-filters button small {
    margin-left: 6px;
    color: #8c8680;
    font-size: 10px;
}

.bsg-inv-filters button:hover,
.bsg-inv-filters button.is-active {
    color: #fff;
    background: #171717;
    border-color: #171717;
}

.bsg-inv-filters button.is-active small { color: #8fd7fb; }

.bsg-inv-tool-meta {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    padding-top: 17px;
    border-top: 1px solid #ddd8d1;
}

.bsg-inv-tool-meta p {
    margin: 0;
    color: #746e68;
    font-size: 13px;
}

#bsg-inventory-quote-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #171717;
    font: 700 12px/1 "Josefin Sans", sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
}

#bsg-inventory-quote-count {
    display: inline-flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #118ed0;
    border-radius: 50%;
}

.bsg-live-inventory .bsg-catalog-grid.pf_4_cols {
    display: grid;
    width: 100%;
    margin: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 22px;
    overflow: visible;
}

.bsg-live-inventory .bsg-catalog-grid.pf_4_cols .project-item {
    display: flex;
    float: none;
    width: auto;
    min-width: 0;
    padding: 0;
}

.bsg-live-inventory .projects-box {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2ded8;
    box-shadow: 0 8px 24px rgba(18, 18, 18, .04);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.bsg-live-inventory .projects-box:hover {
    transform: translateY(-4px);
    border-color: #cbc5bd;
    box-shadow: 0 16px 34px rgba(18, 18, 18, .1);
}

.bsg-live-inventory .projects-thumbnail {
    background: #f1efec;
}

.bsg-live-inventory .projects-grid .projects-thumbnail img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.bsg-live-inventory .projects-grid.style-3 .portfolio-info {
    display: flex;
    position: static;
    height: auto;
    min-height: 118px;
    flex: 1;
    align-items: stretch;
    background: #fff;
    opacity: 1;
}

.bsg-live-inventory .projects-grid.style-3 .portfolio-info .portfolio-info-inner {
    display: flex;
    width: 100%;
    flex-direction: column;
    padding: 18px 20px 20px;
    text-align: left;
}

.bsg-live-inventory .projects-grid.style-3 .portfolio-info .portfolio-info-inner h5 {
    margin: 0 0 14px;
    font-size: 18px;
    line-height: 1.28;
}

.bsg-live-inventory .projects-grid.style-3 .portfolio-info .portfolio-info-inner h5 a {
    color: #171717;
}

.bsg-live-inventory .projects-grid.style-3 .portfolio-info .portfolio-info-inner .portfolio-cates {
    margin: auto 0 0;
    padding: 13px 0 0;
    border-top: 1px solid #ece9e5;
}

.bsg-live-inventory .projects-grid.style-3 .portfolio-info .portfolio-cates a {
    margin: 0;
    color: #77716b;
    font-size: 11px;
    letter-spacing: .12em;
}

.bsg-inv-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 15px;
}

.bsg-inv-card-actions > a,
.bsg-inv-card-actions > button {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: #171717;
    background: transparent;
    border: 1px solid #d8d3cd;
    font: 700 10px/1.2 "Josefin Sans", sans-serif;
    letter-spacing: .06em;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
}

.bsg-inv-card-actions > button:hover,
.bsg-inv-card-actions > button.is-added {
    color: #fff;
    background: #118ed0;
    border-color: #118ed0;
}

.bsg-inv-load-wrap { margin: 42px 0 0; text-align: center; }
.bsg-inv-load-wrap button[hidden] { display: none; }

.bsg-inv-no-results {
    padding: 58px 30px;
    text-align: center;
    background: #f7f5f2;
    border: 1px solid #e2ded8;
}

.bsg-inv-no-results h3 { margin: 0 0 8px; }
.bsg-inv-no-results p { margin: 0; }

.bsg-inv-guide {
    padding: 86px 40px;
    color: #fff;
    background: #151515;
}

.bsg-inv-guide-inner { width: min(1380px, 100%); margin: 0 auto; }
.bsg-inv-guide .bsg-inv-eyebrow { color: #59bbed; }
.bsg-inv-guide .bsg-inv-eyebrow::before { background: #59bbed; }

.bsg-inv-guide-heading {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(360px, .8fr);
    gap: 80px;
    align-items: end;
    margin-bottom: 52px;
}

.bsg-inv-guide-heading h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.05;
}

.bsg-inv-guide-heading p { margin: 0; color: #aaa6a1; font-size: 16px; line-height: 1.75; }

.bsg-inv-guide-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #3a3a3a;
    border-bottom: 1px solid #3a3a3a;
}

.bsg-inv-guide-steps article { padding: 34px 34px 38px; border-right: 1px solid #3a3a3a; }
.bsg-inv-guide-steps article:first-child { padding-left: 0; }
.bsg-inv-guide-steps article:last-child { padding-right: 0; border-right: 0; }
.bsg-inv-guide-steps span { color: #59bbed; font: 700 12px/1 "Josefin Sans", sans-serif; letter-spacing: .12em; }
.bsg-inv-guide-steps h3 { margin: 20px 0 12px; color: #fff; font-size: 22px; }
.bsg-inv-guide-steps p { margin: 0; color: #aaa6a1; line-height: 1.65; }
.bsg-inv-guide-steps a { color: #fff; }

.bsg-inv-locations {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 28px;
    align-items: center;
    margin-top: 38px;
}

.bsg-inv-locations small { display: block; margin-bottom: 7px; color: #817d79; text-transform: uppercase; letter-spacing: .1em; }
.bsg-inv-locations strong { color: #fff; font-size: 15px; }

.bsg-inv-empty {
    max-width: 720px;
    margin: 0 auto 40px;
    padding: 36px;
    text-align: center;
    background: #f6f6f6;
    border: 1px solid #e5e5e5;
}

.bsg-inv-empty h2 { margin-top: 0; }

@media (max-width: 1100px) {
    .bsg-live-inventory { width: min(100% - 48px, 1380px); }
    .bsg-live-inventory .bsg-catalog-grid.pf_4_cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bsg-inv-tools { grid-template-columns: 1fr; }
    .bsg-inv-guide-steps { grid-template-columns: 1fr; }
    .bsg-inv-guide-steps article,
    .bsg-inv-guide-steps article:first-child,
    .bsg-inv-guide-steps article:last-child { padding: 28px 0; border-right: 0; border-bottom: 1px solid #3a3a3a; }
    .bsg-inv-guide-steps article:last-child { border-bottom: 0; }
}

@media (max-width: 780px) {
    .bsg-live-inventory { width: calc(100% - 32px); padding-top: 52px; }
    .bsg-inv-intro-row { grid-template-columns: 1fr; gap: 20px; }
    .bsg-live-inventory .bsg-catalog-grid.pf_4_cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bsg-inv-guide { padding: 64px 24px; }
    .bsg-inv-guide-heading { grid-template-columns: 1fr; gap: 20px; }
    .bsg-inv-locations { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .bsg-live-inventory { width: calc(100% - 24px); }
    .bsg-live-inventory .bsg-catalog-grid.pf_4_cols { grid-template-columns: 1fr; gap: 18px; }
    .bsg-inv-group > .bsg-inv-cat-title { font-size: 24px; }
    .bsg-inv-tools { padding: 20px; }
    .bsg-inv-tool-meta { align-items: flex-start; flex-direction: column; gap: 16px; }
    .bsg-inv-card-actions { grid-template-columns: 1fr; }
}
