/* ============================================
   SECTION: Our Approach — Our Values
   Header + horizontally-scrolling row of value cards.
   Carousel behaviour/sizing mirrors the home page
   testimonials section (400px cards, hidden scrollbar,
   prev/next arrows driven by carousel.js).
   ============================================ */

.values {
    /* Even vertical pad; bottom stays light so it doesn’t stack with the photo */
    padding: 40px var(--section-side-padding);
    background: var(--color-white);
    overflow: hidden;
}

.values__header {
    max-width: var(--container-max);
    margin: 0 auto 12px;
}

.values__heading {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: var(--font-weight-medium);
    line-height: 36px;
    letter-spacing: -0.48px;
    color: var(--color-text-heading);
    margin: 0;
}

.values__sub {
    font-size: 14px;
    line-height: 20px;
    color: var(--color-text-body);
    margin: 0;
}

/* ----- Carousel ----- */
.values__carousel {
    position: relative;
}

.values__row {
    width: 100%;
    display: flex;
    justify-content: safe center;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.values__row::-webkit-scrollbar {
    display: none;
}

/* Scroll-position bars — phones only (arrows take over above) */
.values__bars {
    display: none;
    gap: 7px;
    margin-top: 8px;
}

.values__bar {
    flex: 1 1 0;
    height: 4px;
    border-radius: 100px;
    background: var(--color-primary-light);
    transition: background-color var(--transition-fast);
}

.values__bar.is-active {
    background: var(--color-primary);
}

.values__arrow {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--color-white);
    border: 2px solid var(--color-primary-light);
    box-shadow: var(--shadow-card);
    color: var(--color-primary);
    cursor: pointer;
    transition: background-color var(--transition-fast), opacity var(--transition-fast);
}
.values__arrow:hover {
    background: var(--color-primary-light);
}
.values__arrow--prev {
    left: 0;
}
.values__arrow--next {
    left: auto;
    right: 0;
    transform: translate(50%, -50%);
}
.values__arrow[hidden] {
    display: none;
}
.values__arrow:disabled {
    opacity: 0.35;
    cursor: default;
    box-shadow: none;
}

/* ----- Value card ----- */
.value-card {
    flex: 0 0 400px;
    max-width: 88vw;
    min-height: 282px;
    padding: 24px;
    background: var(--color-white);
    border: 2px solid var(--color-primary-light);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
}

.value-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    margin-bottom: 44px;
}

.value-card__icon--growth    { background: #adf7d3; }
.value-card__icon--care      { background: #8cdcff; }
.value-card__icon--kindness  { background: var(--color-avatar-yellow); }
.value-card__icon--inclusion { background: var(--color-avatar-coral); }
.value-card__icon--teamwork  { background: var(--color-primary); }

.value-card__title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: var(--font-weight-medium);
    line-height: 32px;
    letter-spacing: normal;
    color: var(--color-text-heading);
    margin: 0 0 8px;
}

.value-card__desc {
    font-size: 16px;
    font-weight: var(--font-weight-normal);
    line-height: 26px;
    color: var(--color-text-body);
    margin: 0;
}

.value-card__tag {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    /* On touch devices, hide the arrows and let users swipe the row */
    .values__arrow {
        display: none;
    }
}

@media (max-width: 768px) {
    .values {
        padding: 40px var(--section-side-padding) 24px;
    }
}

/* ----- Phones: position bars stand in for the arrows ----- */
@media (max-width: 600px) {
    .values__bars {
        display: flex;
    }

    /* Tighter run-in to the photo band below */
    .values {
        padding-bottom: 24px;
    }
}
