/* ==========================================================
   Sustain — Culture (04) — HARMONY expandable cards
   CSS source: design-git/css/sustain.css §.sushar* (ln 1258–1391)
   ========================================================== */

/* ---- shell ---- */
.custom-sustain-culture {
    padding-inline: 90px;
    padding-block: clamp(52px, calc(8.6 * var(--vwu, 14.4px)), 160px);
}
@media (max-width: 1024px) {
    .custom-sustain-culture { padding-inline: 40px; }
}
@media (max-width: 640px) {
    .custom-sustain-culture { padding-inline: 24px; }
}

/* ---- section heading ---- */
.custom-sustain-culture .sec__head--center {
    text-align: center;
    margin-bottom: clamp(20px, calc(2.4 * var(--vwu, 14.4px)), 36px);
}
.custom-sustain-culture .h-sec {
    font-size: min(clamp(28px, calc(3.9 * var(--vwu, 14.4px)), 56px), calc(6.2 * var(--vhu, 9px)));
    font-weight: 600; line-height: 1.3;
    color: var(--navy, #16418C); margin: 0;
}
.custom-sustain-culture .h-sec em {
    position: relative;
    display: inline-block;
    font-style: italic;
    color: var(--cp-green, #5CA13F);
}
.custom-sustain-culture .h-sec em::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 4px;
    height: 6px;
    border-radius: 4px;
    background: currentColor;
    opacity: 0.18;
}

/* ---- HARMONY row ---- */
.custom-sustain-culture .sushar {
    display: flex;
    gap: clamp(10px, calc(1.2 * var(--vwu, 14.4px)), 18px);
    align-items: stretch;
    height: 480px; /* ok-rhythm — ความสูงของแถวการ์ด ไม่ใช่ระยะ section */
}

/* ---- card ---- */
.custom-sustain-culture .sushar__card {
    --c: var(--cp-blue, #50A3D5);
    position: relative; overflow: hidden;
    flex: 1 1 0; min-width: 0;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: clamp(20px, calc(2.4 * var(--vwu, 14.4px)), 36px);
    border-radius: var(--curl-sm, 46px) 0 var(--curl-sm, 46px) 0;
    background: var(--c); color: #fff;
    cursor: pointer;
    transition: flex-grow .55s var(--ease, cubic-bezier(.2,.8,.2,1)),
                box-shadow .45s var(--ease, cubic-bezier(.2,.8,.2,1));
}
.custom-sustain-culture .sushar__card--blue  { --c: var(--cp-blue,  #50A3D5); }
.custom-sustain-culture .sushar__card--red   { --c: var(--cp-red,   #CE2929); }
.custom-sustain-culture .sushar__card--green { --c: var(--cp-green, #5CA13F); }

/* ---- background photo ---- */
.custom-sustain-culture .sushar__shot {
    position: absolute; inset: 0; z-index: 0;
}
.custom-sustain-culture .sushar__shot img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transform: scale(1.06);
    transition: transform .8s var(--ease, cubic-bezier(.2,.8,.2,1));
}
.custom-sustain-culture .sushar__shot::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to top,
        color-mix(in srgb, var(--c) 94%, transparent) 0%,
        color-mix(in srgb, var(--c) 88%, transparent) 32%,
        color-mix(in srgb, var(--c) 50%, transparent) 66%,
        color-mix(in srgb, var(--c) 16%, transparent) 100%);
}
.custom-sustain-culture .sushar__shot::after {
    content: ""; position: absolute; inset: 0; z-index: 2;
    background: color-mix(in srgb, var(--c) 90%, transparent);
    opacity: 0;
    transition: opacity .55s var(--ease, cubic-bezier(.2,.8,.2,1));
}
.custom-sustain-culture .sushar__card:hover .sushar__shot img,
.custom-sustain-culture .sushar__card:focus-within .sushar__shot img { transform: scale(1); }
.custom-sustain-culture .sushar__card:hover .sushar__shot::after,
.custom-sustain-culture .sushar__card:focus-within .sushar__shot::after { opacity: 1; }
.custom-sustain-culture .sushar__card:focus-visible {
    outline: 3px solid var(--navy, #16418C); outline-offset: 3px;
}
.custom-sustain-culture .sushar__card:hover,
.custom-sustain-culture .sushar__card:focus-within {
    flex-grow: 2.4;
    box-shadow: var(--sh-lg, 0 34px 80px -20px rgba(22,65,140,.30));
}

/* ---- face ---- */
.custom-sustain-culture .sushar__face { position: relative; z-index: 1; }
.custom-sustain-culture .sushar__n {
    display: block;
    font-size: clamp(40px, calc(5 * var(--vwu, 14.4px)), 72px);
    font-weight: 700; line-height: 1; color: rgba(255,255,255,.42);
}
.custom-sustain-culture .sushar__t {
    margin: 10px 0 0;
    font-size: clamp(18px, calc(5 * var(--vwu, 14.4px) / 3), 24px);
    font-weight: 600; line-height: 1.3; color: #fff;
}
.custom-sustain-culture .sushar__s {
    margin: 6px 0 0; font-size: 14px; font-weight: 300;
    line-height: 1.5; color: rgba(255,255,255,.86);
}

/* ---- collapsible panel ---- */
.custom-sustain-culture .sushar__panel {
    position: relative; z-index: 1;
    display: grid; grid-template-rows: 0fr;
    opacity: 0; margin-top: 0;
    transition: grid-template-rows .55s var(--ease, cubic-bezier(.2,.8,.2,1)),
                opacity .35s var(--ease, cubic-bezier(.2,.8,.2,1)),
                margin-top .55s var(--ease, cubic-bezier(.2,.8,.2,1));
}
.custom-sustain-culture .sushar__panel > * { min-height: 0; overflow: hidden; }
.custom-sustain-culture .sushar__card:hover .sushar__panel,
.custom-sustain-culture .sushar__card:focus-within .sushar__panel {
    grid-template-rows: 1fr; opacity: 1;
    margin-top: clamp(16px, calc(1.8 * var(--vwu, 14.4px)), 26px);
}

/* list panel */
.custom-sustain-culture .sushar__list {
    margin: 0; padding: 0 0 0 22px; display: grid; gap: 10px;
}
.custom-sustain-culture .sushar__list li {
    font-size: 16px; font-weight: 500; line-height: 1.5; color: #fff;
}
.custom-sustain-culture .sushar__list span {
    font-weight: 300; color: rgba(255,255,255,.82);
}

/* chips panel */
.custom-sustain-culture .sushar__chips {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: 8px;
}
.custom-sustain-culture .sushar__chips li {
    padding: 6px 14px; border-radius: 999px;
    background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
    font-size: 14px; font-weight: 500; line-height: 1.4; color: #fff;
    white-space: nowrap;
}

/* levels panel */
.custom-sustain-culture .sushar__lvs { display: block; }
.custom-sustain-culture .sushar__lv + .sushar__lv { margin-top: 14px; }
.custom-sustain-culture .sushar__lvk {
    display: block; margin-bottom: 8px;
    font-size: 12px; font-weight: 600;
    letter-spacing: .06em; color: rgba(255,255,255,.78);
}

/* ---- tablet: 3 columns ---- */
@media (max-width: 1024px) {
    .custom-sustain-culture .sushar {
        --shot-h: clamp(140px, calc(24 * var(--vwu, 14.4px)), 240px);
        flex-wrap: wrap; height: auto; min-height: 0;
    }
    .custom-sustain-culture .sushar__card {
        flex: 1 1 0;
        min-width: 0;
        padding-top: calc(var(--shot-h) + clamp(20px, calc(2.4 * var(--vwu, 14.4px)), 36px));
    }
    .custom-sustain-culture .sushar__card:hover,
    .custom-sustain-culture .sushar__card:focus-within { flex-grow: 0; box-shadow: none; }
    .custom-sustain-culture .sushar__shot { inset: 0 0 auto; height: var(--shot-h); }
    .custom-sustain-culture .sushar__shot img { transform: scale(1); }
    .custom-sustain-culture .sushar__shot::after { opacity: 0; }
    .custom-sustain-culture .sushar__panel {
        grid-template-rows: 1fr; opacity: 1;
        margin-top: clamp(16px, calc(1.8 * var(--vwu, 14.4px)), 26px);
    }
    .custom-sustain-culture .sushar__n { font-size: 40px; }
}
/* ---- mobile: 1 column ---- */
@media (max-width: 640px) {
    .custom-sustain-culture .sushar { flex-direction: column; }
    .custom-sustain-culture .sushar__card,
    .custom-sustain-culture .sushar__card:last-child { flex: 0 0 auto; }
}
@media (max-width: 620px) {
    .custom-sustain-culture .sushar__chips li { white-space: normal; }
}
