/*---*\
Homepage Value Propositions V2
Why You Oughta Call Strada - value cards on dark navy band.

KEY FEATURES:
- Hardcoded dark navy background, gradient overlays, orange divider
- Desktop: left intro + divider + 2x3 card grid
- Mobile: 2 full-width cards per column, horizontal page scroll + L/R arrows
- Tablet: single-card horizontal scroll-snap with L/R arrows
- Optional YOCS logo overlay at bottom

IMPLEMENTATION NOTES:
- Tokens from custom-properties.css
- section-padding on block root for vertical rhythm
- Grid used for 2x3 card placement (2D layout)
- Mobile: grid-auto-flow column + 2 rows; tablet: flex row scroll (cards-icon-v2)
\*---*/

.value-props-v2 {
    position: relative;
    overflow: hidden;
    color: var(--text-inverse);
}

.value-props-v2__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.value-props-v2__bg-color {
    position: absolute;
    inset: 0;
    background-color: var(--dark-blue);
}

.value-props-v2__bg-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.26;
}

.value-props-v2__bg-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.value-props-v2__bg-gradient {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(0deg, rgba(5, 21, 41, 0) 57.5%, rgba(5, 21, 41, 0.96) 89.9%),
        linear-gradient(90deg, rgba(5, 21, 41, 0) 1.25%, rgb(5, 21, 41) 41.9%);
}

.value-props-v2__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding-left: 22px;
    padding-right: 22px;
}

.value-props-v2__layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
}

.value-props-v2__intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 324px;
}

.value-props-v2__heading {
    margin: 0;
    padding: 0;
    color: var(--text-inverse);
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    font-weight: var(--font-weight-bold);
    line-height: var(--lh-heading);
    text-align: center;
}

.value-props-v2__cta {
    align-self: center;
}

.value-props-v2__cta--desktop {
    display: none;
}

.value-props-v2__cta--mobile {
    display: inline-flex;
}

.value-props-v2__divider {
    display: none;
}

.value-props-v2__cards-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    min-width: 0;
}

.value-props-v2__cards-viewport {
    width: 100%;
    min-width: 0;
}

.value-props-v2__cards {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: auto auto;
    grid-auto-columns: 100%;
    column-gap: 10px;
    row-gap: 10px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.value-props-v2__cards::-webkit-scrollbar {
    display: none;
}

.value-props-v2__card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    min-width: 0;
    padding: 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    scroll-snap-align: start;
}

@media (prefers-reduced-motion: reduce) {
    .value-props-v2__cards {
        scroll-behavior: auto;
    }
}

.value-props-v2__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 2px;
    border: 2px solid var(--orange);
    border-radius: 50px;
    color: var(--orange);
    /* Glyph size: custom SVG/img use 1em to match icomoon (22/40). */
    font-size: 22px;
}

.value-props-v2__icon i {
    font-size: 1em;
    line-height: 1;
}

.value-props-v2__icon svg,
.value-props-v2__icon-svg,
.value-props-v2__icon img {
    display: block;
    width: 1em;
    height: 1em;
    max-width: 1em;
    max-height: 1em;
    aspect-ratio: 1;
    object-fit: contain;
    flex-shrink: 0;
}

.value-props-v2__icon svg,
.value-props-v2__icon svg path,
.value-props-v2__icon svg circle,
.value-props-v2__icon svg rect,
.value-props-v2__icon svg polygon,
.value-props-v2__icon svg ellipse {
    fill: currentColor;
}

.value-props-v2__card-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.value-props-v2__card-heading {
    margin: 0;
    color: var(--text-inverse);
    font-family: var(--font-heading);
    font-size: var(--fs-subheading);
    font-weight: var(--font-weight-bold);
    line-height: var(--lh-heading);
}

.value-props-v2__card-body {
    margin: 0;
    padding: 0;
    color: var(--text-paragraph-inverse);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: var(--font-weight-regular);
    line-height: var(--lh-body);
}

.value-props-v2__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.value-props-v2__nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--orange);
    border-radius: 44px;
    background: transparent;
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.value-props-v2__nav-btn:hover,
.value-props-v2__nav-btn:focus-visible {
    opacity: 0.85;
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

.value-props-v2__nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.value-props-v2__nav-btn img {
    display: block;
    width: 21px;
    height: 21px;
}

.value-props-v2__nav-btn:not(.value-props-v2__nav-btn--next) img {
    transform: scaleX(-1);
}

.value-props-v2__yocs {
    position: absolute;
    bottom: 0;
    left: 50%;
    z-index: 1;
    width: 213px;
    height: 58px;
    transform: translateX(calc(-50% - 66px));
    pointer-events: none;
    opacity: 0.25;
    overflow: hidden;
}

.value-props-v2__yocs img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

@media (min-width: 768px) {
    .value-props-v2__inner {
        padding-left: 40px;
        padding-right: 40px;
    }

    .value-props-v2__intro {
        max-width: 400px;
    }

    .value-props-v2__cards {
        display: flex;
        flex-wrap: nowrap;
        grid-auto-flow: unset;
        grid-template-rows: unset;
        grid-auto-columns: unset;
        gap: 16px;
        width: calc(100% + 40px);
        margin: -16px -40px -16px 0;
        padding: 16px 40px 16px 0;
    }

    .value-props-v2__card {
        flex: 0 0 calc(100% - 80px);
        max-width: 400px;
    }

    .value-props-v2__yocs {
        width: 400px;
        height: 110px;
        transform: translateX(calc(-50% - 120px));
    }
}

@media (min-width: 1200px) {
    .value-props-v2__inner {
        align-items: stretch;
        gap: 0;
    }

    .value-props-v2__layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 46px;
    }

    .value-props-v2__intro {
        align-items: flex-start;
        flex: 0 0 324px;
        max-width: 324px;
        width: 324px;
    }

    .value-props-v2__heading {
        text-align: left;
    }

    .value-props-v2__cta--desktop {
        display: inline-flex;
        align-self: flex-start;
    }

    .value-props-v2__cta--mobile {
        display: none;
    }

    .value-props-v2__divider {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        flex: 0 0 17px;
        align-self: stretch;
        width: 17px;
        position: relative;
    }

    .value-props-v2__divider::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 1px;
        margin-left: -0.5px;
        background-color: var(--orange);
    }

    .value-props-v2__divider-dot {
        position: relative;
        z-index: 1;
        flex-shrink: 0;
        width: 17px;
        height: 17px;
        border-radius: 50%;
        background-color: var(--orange);
    }

    .value-props-v2__cards-wrap {
        flex: 1 1 auto;
        min-width: 0;
        gap: 0;
    }

    .value-props-v2__cards {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
        width: 100%;
        margin: 0;
        padding: 0;
        overflow: visible;
        scroll-snap-type: none;
    }

    .value-props-v2__cards-viewport {
        overflow: visible;
    }

    .value-props-v2__card {
        display: flex;
        flex: unset;
        width: auto;
        max-width: none;
        min-height: 226px;
        scroll-snap-align: none;
    }

    .value-props-v2__card-body {
        font-size: var(--fs-body);
    }

    .value-props-v2__nav {
        display: none;
    }

    .value-props-v2__bg-image img {
        width: 58%;
        height: 163.25%;
        max-width: none;
        object-fit: cover;
        object-position: left top;
        position: absolute;
        left: -10.57%;
        top: -15.97%;
    }

    .value-props-v2__yocs {
        width: 671px;
        height: 183px;
        transform: translateX(calc(-50% - 283.5px));
    }
}
