/* =========================================
   About Page – Our Values
   ========================================= */

.ap-values {
    position: relative;
    background: #ffffff;
    padding: 5.5rem 0 6rem;
}

.ap-values__inner {
    position: relative;
    z-index: 2;
}

/* ── Section header ────────────────────── */
.ap-values__header {
    max-width: 560px;
    margin-bottom: 3rem;
}

.ap-values__eyebrow,
.ap-values__card-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.ap-values__eyebrow-icon,
.ap-values__card-eyebrow-icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 2px dotted #2ecc71;
    border-radius: 50%;
    animation: ap-values-spin 8s linear infinite;
}

@keyframes ap-values-spin {
    to { transform: rotate(360deg); }
}

.ap-values__headline {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #111111;
    margin: 0 0 1rem;
    font-family: var(--font-heading, 'Parkinsans', sans-serif);
}

.ap-values__intro {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #555;
    margin: 0;
}

/* ─────────────────────────────────────────
   CARDS
   ───────────────────────────────────────── */
.ap-values__cards {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* ── Card base ─────────────────────────── */
.ap-values__card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
    /* Soft mint→white fade behind the text side */
    background: linear-gradient(
        90deg,
        #e8f5ee 0%,
        #f4faf6 45%,
        #ffffff 100%
    );
    border-radius: 18px;
    padding: 2.5rem clamp(1.75rem, 4vw, 3rem);
    overflow: hidden;
}

/* image-left: image col first, text col second */
.ap-values__card--image-left .ap-values__media { order: 1; }
.ap-values__card--image-left .ap-values__text  { order: 2; }
.ap-values__card--image-left {
    background: linear-gradient(
        270deg,
        #e8f5ee 0%,
        #f4faf6 45%,
        #ffffff 100%
    );
}

/* image-right: text col first, image col second */
.ap-values__card--image-right .ap-values__text  { order: 1; }
.ap-values__card--image-right .ap-values__media { order: 2; }

/* ── Text block ────────────────────────── */
.ap-values__text {
    max-width: 420px;
    padding: 1rem 0;
}

.ap-values__card-eyebrow {
    margin-bottom: 0.85rem;
}

.ap-values__title {
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    font-weight: 400;
    line-height: 1.25;
    color: #111;
    margin: 0 0 0.85rem;
    letter-spacing: -0.01em;
    font-family: var(--font-heading, 'Parkinsans', sans-serif);
}

.ap-values__desc {
    font-size: 0.92rem;
    line-height: 1.75;
    color: #555;
    margin: 0;
}

/* ── Image block ───────────────────────── */
.ap-values__media {
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.10);
}

.ap-values__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Center-align the text horizontally on each card per the screenshot:
   image-right card → text starts further right (towards the image)
   image-left card  → text sits to the right of the image, starting near center */
.ap-values__card--image-right .ap-values__text { justify-self: end; }
.ap-values__card--image-left  .ap-values__text { justify-self: start; }

/* ─────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .ap-values__card {
        gap: 2rem;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .ap-values {
        padding: 4.5rem 0 5rem;
    }
    .ap-values__cards {
        gap: 1.75rem;
    }
    .ap-values__card,
    .ap-values__card--image-left,
    .ap-values__card--image-right {
        grid-template-columns: 1fr;
        background: #f4faf6;
        padding: 1.75rem;
        gap: 1.5rem;
    }
    /* image always above text on mobile */
    .ap-values__card--image-left  .ap-values__media,
    .ap-values__card--image-right .ap-values__media { order: 1; }
    .ap-values__card--image-left  .ap-values__text,
    .ap-values__card--image-right .ap-values__text  { order: 2; justify-self: start; max-width: 100%; padding: 0; }
}

@media (max-width: 480px) {
    .ap-values__card,
    .ap-values__card--image-left,
    .ap-values__card--image-right {
        padding: 1.25rem;
        border-radius: 14px;
    }
}
