/* vn-trust-bar — Home (inline) + Memory Care (stacked)
   Source: Latest mockups/corrected/index.html + mem-care/index.html (.trust-bar). */

.vn-trust {
    --vn-trust-rule: #C9D7E8;
    --vn-trust-icon: clamp(48px, 4.4vw, 84px);
    background-color: var(--vn-mist-soft);
    padding: clamp(20px, 2.8vw, 40px) 20px;
    font-family: var(--vn-font-body);
    color: var(--vn-ink);
}

.vn-trust__inner {
    max-width: 1551px;
    margin: 0 auto;
}

.vn-trust__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.vn-trust__item {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1 1 220px;
    min-width: 220px;
    padding: 8px clamp(20px, 2.6vw, 48px);
    border-right: 1px solid var(--vn-trust-rule);
}

.vn-trust__item:last-child { border-right: none; }

.vn-trust .vn-trust__icon {
    flex: none;
    width: var(--vn-trust-icon);
    color: var(--vn-navy);
}

.vn-trust__icon svg {
    display: block;
    width: 100%;
    height: auto;
    fill: currentColor;
}

.vn-trust__icon i { font-size: var(--vn-trust-icon); }

.vn-trust__body { min-width: 0; }

.vn-trust .vn-trust__title {
    margin: 0;
    font-family: var(--vn-font-body);
    font-size: clamp(1rem, 1.3vw, 1.5rem);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0;
    color: var(--vn-ink);
}

.vn-trust .vn-trust__text {
    margin: 0;
    font-size: clamp(0.95rem, 1.15vw, 1.4rem);
    font-weight: 400;
    line-height: 1.35;
}

/* ── Stacked (Memory Care) ── */

.vn-trust-layout-stacked .vn-trust {
    --vn-trust-icon: clamp(56px, 4.9vw, 95px);
    background-color: var(--vn-mist);
    padding: clamp(24px, 2.6vw, 48px) 20px;
    color: var(--vn-navy);
}

.vn-trust-layout-stacked .vn-trust__inner { max-width: 1780px; }

.vn-trust-layout-stacked .vn-trust__item {
    display: block;
    min-width: 0;
    padding: 4px clamp(16px, 2vw, 40px);
    text-align: center;
}

/* Stacked icons are sized by height, like the mockup */
.vn-trust-layout-stacked .vn-trust .vn-trust__icon {
    display: flex;
    justify-content: center;
    width: auto;
    height: var(--vn-trust-icon);
    margin: 0 auto 14px;
}

.vn-trust-layout-stacked .vn-trust__icon svg { width: auto; height: 100%; }

.vn-trust-layout-stacked .vn-trust .vn-trust__title {
    margin: 0 0 10px;
    font-size: clamp(1.05rem, 1.15vw, 1.375rem);
    font-weight: 600;
    color: var(--vn-navy);
}

/* ── Short blue dividers (Assisted Living, Independent Living) ──
   Source: Rest of pages/Assisted Living + Independent Living (.trust-rule: 3px #B3D1FF, 111px). */

.vn-trust-rules-short .vn-trust {
    --vn-trust-rule: #B3D1FF;
    --vn-trust-icon: min(4.6vw, 88px);
    padding: min(1.56vw, 30px) 20px min(1.87vw, 36px);
}

.vn-trust-rules-short .vn-trust__inner { max-width: 1924px; }

.vn-trust-rules-short .vn-trust__item {
    position: relative;
    flex: 1 1 0;
    border-right: none;
}

.vn-trust-rules-short .vn-trust__item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: calc(var(--vn-trust-icon) + min(0.55vw, 10px));
    right: -1.5px;
    width: 3px;
    height: min(5.78vw, 111px);
    background: var(--vn-trust-rule);
}

.vn-trust-rules-short .vn-trust .vn-trust__title {
    margin-bottom: min(0.52vw, 10px);
    font-size: min(1.25vw, 24px);
    line-height: 1.25;
}

.vn-trust-rules-short .vn-trust .vn-trust__text {
    max-width: min(15.2vw, 292px);
    margin: 0 auto;
    font-size: min(1.146vw, 22px);
    line-height: 1.364;
}

/* ── Tablet + mobile: grid with inner dividers ──
   Every item draws a right + bottom rule; the list is pulled 1px past a clipping
   wrapper so rules on the outer edges disappear, whatever the column count. */

@media (max-width: 1024px) {
    .vn-trust { padding: 28px 20px; }
    .vn-trust-layout-stacked .vn-trust { padding: 32px 20px; --vn-trust-icon: 56px; }

    .vn-trust .vn-trust__inner { max-width: 760px; overflow: hidden; }
    .vn-trust-cols-tablet-3 .vn-trust__inner { max-width: 900px; }

    .vn-trust__list {
        display: grid;
        margin: 0 -1px -1px 0;
    }

    .vn-trust-cols-tablet-1 .vn-trust__list { grid-template-columns: 1fr; }
    .vn-trust-cols-tablet-2 .vn-trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vn-trust-cols-tablet-3 .vn-trust__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .vn-trust .vn-trust__item,
    .vn-trust .vn-trust__item:last-child {
        min-width: 0;
        gap: 18px;
        padding: 18px 22px;
        border-right: 1px solid var(--vn-trust-rule);
        border-bottom: 1px solid var(--vn-trust-rule);
    }

    .vn-trust-layout-stacked .vn-trust .vn-trust__item { padding: 20px 18px; }

    .vn-trust .vn-trust__title,
    .vn-trust-layout-stacked .vn-trust .vn-trust__title { font-size: 1.05rem; }
    .vn-trust .vn-trust__text { font-size: 0.95rem; }

    /* Short bars become the same grid lines as the other bars */
    .vn-trust-rules-short .vn-trust { --vn-trust-rule: #C9D7E8; padding: 32px 20px; }
    .vn-trust-rules-short .vn-trust__item:not(:last-child)::after { display: none; }
    .vn-trust-rules-short .vn-trust .vn-trust__title { font-size: 1.05rem; }
    .vn-trust-rules-short .vn-trust .vn-trust__text { max-width: none; font-size: 0.95rem; }
}

@media (max-width: 767px) {
    .vn-trust .vn-trust__inner { max-width: 560px; }
    .vn-trust-layout-inline .vn-trust { --vn-trust-icon: 46px; }

    .vn-trust-cols-mobile-1 .vn-trust__list { grid-template-columns: 1fr; }
    .vn-trust-cols-mobile-2 .vn-trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vn-trust-cols-mobile-3 .vn-trust__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    /* Odd item out on two columns spans the row */
    .vn-trust-cols-mobile-2 .vn-trust__item:nth-child(odd):last-child { grid-column: 1 / -1; }

    .vn-trust .vn-trust__item,
    .vn-trust .vn-trust__item:last-child { gap: 14px; padding: 16px 12px; }

    .vn-trust .vn-trust__title,
    .vn-trust-layout-stacked .vn-trust .vn-trust__title { font-size: 1rem; }
}

@media (max-width: 480px) {
    .vn-trust .vn-trust__list { grid-template-columns: 1fr; }
    .vn-trust .vn-trust__item,
    .vn-trust .vn-trust__item:last-child { grid-column: auto; padding: 18px 8px; }
}
