/* Vision & Values section (site/plugins/visionvalues) */

.vision-values {
    padding: clamp(2rem, 5vw, 4rem) 0;
    text-align: center;
}

.vision-values__head {
    max-width: 760px;
    margin: 0 auto clamp(1.75rem, 4vw, 3rem);
}

.vision-values__heading {
    font-size: clamp(2rem, 5vw, 3.4rem);
    color: var(--nm-red);
    margin: 0.25rem 0 0.75rem;
}

.vision-values__scripture {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--nm-text);
}

.vision-values__scripture cite {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.95rem;
    font-style: normal;
    font-weight: 600;
    color: var(--nm-muted);
}

.vision-values__intro p {
    margin: 0;
    color: var(--nm-muted);
}

.vision-values__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

/*
 * Pill with a soft border in the value's colour and a band of light that
 * sweeps across it now and then (staggered per pill via --vv-delay).
 */
.vv-pill {
    position: relative;
    overflow: hidden;
    padding: 3px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--vv-c1) 35%, #fff);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vv-pill::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.85) 50%, transparent 70%);
    transform: translateX(-110%);
    animation: vv-shine 5s ease-in-out infinite;
    animation-delay: var(--vv-delay, 0s);
}

@keyframes vv-shine {
    0% {
        transform: translateX(-110%);
    }
    30%, 100% {
        transform: translateX(110%);
    }
}

.vv-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px color-mix(in srgb, var(--vv-c1) 30%, transparent);
}

.vv-pill__inner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 68px;
    padding: 0.5rem 1.25rem 0.5rem 0.55rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--vv-c1) 10%, #fff);
    text-align: left;
}

/*
 * The Imaginor icons have their name printed above the circle; crop to the
 * circle alone (it sits ~13% in from the left, ~15% down, ~74% wide).
 */
.vv-pill__icon {
    position: relative;
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    overflow: hidden;
    /* The icons' symbols are transparent cut-outs, so they need a white backing */
    background: #fff;
}

.vv-pill__icon img {
    position: absolute;
    left: -19.7%;
    top: -22.3%;
    width: 138.9%;
    max-width: none;
    height: auto;
}

.vv-pill__name {
    font-family: "sirenia", sans-serif;
    font-size: 1.35rem;
    line-height: 1.1;
    color: var(--nm-text);
}

.vision-values__actions {
    margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

.vision-values__button {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 1.9rem;
    border-radius: 999px;
    background: var(--nm-red);
    color: #fff;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

.vision-values__button:hover {
    background: var(--nm-dark-red);
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .vision-values__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .vision-values__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .vv-pill__inner {
        min-height: 52px;
        gap: 0.5rem;
        padding: 0.35rem 0.7rem 0.35rem 0.35rem;
    }

    .vv-pill__icon {
        width: 40px;
        height: 40px;
    }

    .vv-pill__name {
        min-width: 0;
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vv-pill::after {
        animation: none;
    }
}

/* Tinted Vision & Values block: a band set apart from the page, edged with
   a stripe of the value colours (see nm_value_stripe()) */
.vision-values-shell.block-shell--tint {
    margin-block: clamp(1.5rem, 4vw, 3rem);
    background: linear-gradient(180deg, color-mix(in srgb, var(--nm-red) 5%, var(--nm-surface-strong)) 0%, var(--nm-surface-strong) 45%);
}

.vision-values-shell.block-shell--tint::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--value-stripe);
}
