/* ==========================================================================
   Aradel — Our Values Module
   Scope: .ar-values
   ========================================================================== */

/* ── Section wrapper ──────────────────────────────────────────────────────── */
.ar-values {
    background-color: #fff;
    width: 100%;
}

.ar-values__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 112px 96px;
}

/* ── Section heading ─────────────────────────────────────────────────────── */
.ar-values__heading {
    font-family: "Nunito Sans", sans-serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 64px;
    letter-spacing: 0.014px;
    color: #000;
    margin: 0 0 77px;
    padding: 0;
}

/* ── Values grid ─────────────────────────────────────────────────────────── */
.ar-values__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 48px;
    row-gap: 64px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ── Value item ──────────────────────────────────────────────────────────── */
.ar-values__item {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* ── Value title ─────────────────────────────────────────────────────────── */
.ar-values__item-title {
    font-family: "Nunito Sans", sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 32px;
    letter-spacing: 0.006px;
    color: #C1000F;
    margin: 0 0 34px;
    padding: 0;
}

/* ── Divider ─────────────────────────────────────────────────────────────── */
.ar-values__divider {
    border: none;
    border-top: 1px solid #000;
    margin: 0 0 34px;
    padding: 0;
    width: 100%;
}

/* ── Value description ───────────────────────────────────────────────────── */
.ar-values__item-desc {
    font-family: "Nunito Sans", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 27px;
    color: #000;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   Motion — Reveal animations
   Items fade up on scroll via IntersectionObserver + .is-visible class.
   Stagger driven by CSS custom property --ar-values-delay (integer index).
   ========================================================================== */

.ar-values__heading--reveal {
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.ar-values__heading--reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ar-values__item--reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    /* Stagger: heading takes 0.55s, then items stagger at 80ms each */
    transition-delay: calc(0.2s + (var(--ar-values-delay, 0) * 80ms));
}

.ar-values__item--reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion — show immediately, no transforms */
@media (prefers-reduced-motion: reduce) {
    .ar-values__heading--reveal,
    .ar-values__item--reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================================================================
   Responsive — Tablet ≤ 1024px
   ========================================================================== */

@media (max-width: 1024px) {
    .ar-values__inner {
        padding: 0 64px 72px;
    }

    .ar-values__heading {
        font-size: 40px;
        line-height: 52px;
        margin-bottom: 56px;
    }

    .ar-values__grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 40px;
        row-gap: 56px;
    }

    .ar-values__item-title {
        font-size: 24px;
        line-height: 30px;
        margin-bottom: 28px;
    }

    .ar-values__divider {
        margin-bottom: 28px;
    }

    .ar-values__item-desc {
        font-size: 16px;
        line-height: 24px;
    }
}

/* ==========================================================================
   Responsive — Mobile ≤ 640px
   ========================================================================== */

@media (max-width: 640px) {
    .ar-values__inner {
        padding: 0 24px 48px;
    }

    .ar-values__heading {
        font-size: 32px;
        line-height: 44px;
        margin-bottom: 40px;
    }

    .ar-values__grid {
        grid-template-columns: 1fr;
        row-gap: 48px;
    }

    .ar-values__item-title {
        font-size: 22px;
        line-height: 28px;
        margin-bottom: 24px;
    }

    .ar-values__divider {
        margin-bottom: 24px;
    }

    .ar-values__item-desc {
        font-size: 16px;
        line-height: 24px;
    }

    /* On mobile, reduce stagger — feels tighter in a single column */
    .ar-values__item--reveal {
        transition-delay: calc(0.15s + (var(--ar-values-delay, 0) * 50ms));
    }
}
