﻿/* Section: home_approach_section */
/* ---------- 10.3 m-approach ------------------------------------------ */
.m-ap {
    --neck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='none'%3E%3Cpath d='M0 0C7 0 7 8 12 8S17 0 24 0V24C17 24 17 16 12 16S7 24 0 24Z'/%3E%3C/svg%3E");
    background: var(--g-sand);
    border-radius: var(--r-2xl);
    padding: clamp(16px, 2.6vw, 40px);
}

.m-ap__row {
    --gap: 24px;
    display: flex;
    gap: var(--gap);
    height: 620px;
}

.m-aim__ap .m-ap__row {
    height: 660px;
    filter: drop-shadow(0px 24px 57.6px #e8e8e8);
}

.m-ap__card-text {
    display: none;
}

.m-ap__card-text,
.m-aim__steps-wrap {
    min-width: 350px;
    opacity: 0;
    animation-name: opacity100;
    animation-delay: 0.5s;
    animation-iteration-count: 1;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
    transform: translateX(10px);
}

@keyframes opacity100 {
    to {
        opacity: 1;
        transform: translate(0);
    }
}

.m-ap__card.is-active .m-ap__default-text {
    display: none;
}

.m-ap__card.is-active .m-ap__card-text {
    display: block;
}

.m-aim .m-ap__card p {
    max-width: 360px;
}

.m-aim .m-ap__media {
    height: 49%;
}

.m-aim .m-ap__card:not(.is-active) .m-ap__photo {
    clip-path: inset(100% 0 0 0);
    opacity: 1;
    filter: none;
}

.m-aim__steps-wrap {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition:
        grid-template-rows 0.6s var(--m-swap),
        opacity 0.4s;
}

.m-ap__card.is-active .m-aim__steps-wrap {
    grid-template-rows: 1fr;
    opacity: 1;
    transition-delay: 0.2s;
}

.m-aim__steps {
    min-height: 0;
    overflow: hidden;
    list-style: none;
    margin: 0;
    padding: 0;
}

.m-aim__step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding-block: 8px;
    font-size: var(--fs-md);
    /* line-height: 1.3; */
    /* color: var(--c-slate); */
}

.m-aim__step:first-child {
    margin-top: 18px;
}

.m-aim__step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 13px;
    top: calc(50% + 14px);
    width: 1px;
    height: calc(100% - 12px);
    background: #bfe3f4;
}

.m-aim__tile {
    position: relative;
    z-index: 1;
    flex: none;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--c-navy);
}

.m-aim__tile .fi {
    font-size: 15px;
}

.m-aim__tile--lime {
    background: #d6ec8a;
}

.m-aim__tile--blue {
    background: #5fa8f6;
}

.m-aim__tile--teal {
    background: #5fdccf;
}

/* Mini UI mockup inside the gradient media area */
.m-aim__ui {
    position: absolute;
    inset: 55px 24px 22px;
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 18px 20px;
    background: #fff;
    border-radius: var(--r-xl);
    border: 5px solid rgba(255, 255, 255, 0.55);
    background-clip: padding-box;
    font-size: 13px;
    line-height: 1.35;
    color: var(--c-navy);
    /* box-shadow: 0 0 0 5px rgba(255, 255, 255, .45), 0 18px 36px -16px rgba(30, 60, 110, .35); */
}

.m-aim__ui-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.m-aim__ui-head b {
    display: block;
    font-size: 14px;
    font-weight: var(--fw-medium);
}

.m-aim__ui-head small {
    display: block;
    font-size: 11px;
    color: var(--c-muted);
}

.m-aim__ui-avatar {
    flex: none;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #d6ec8a;
    color: var(--c-navy);
}

.m-aim__ui-avatar .fi {
    font-size: 22px;
}

.m-aim__ui>p {
    font-size: 13px;
    color: var(--c-ink);
}

.m-aim__ui-slots {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-radius: var(--r-md);
    background: #eaf3ff;
}

.m-aim__ui-slots span {
    flex: 1;
    padding: 6px 4px;
    border-radius: 6px;
    background: #bcd8fb;
    text-align: center;
    font-size: 11.5px;
    white-space: nowrap;
}

.m-aim__ui-rows {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.m-aim__ui-rows li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--c-border-soft);
}

.m-aim__ui-rows b {
    font-weight: var(--fw-medium);
}

.m-aim__ui-rows .ok {
    color: var(--c-green);
}

.m-aim__ui-rows .warn {
    color: var(--c-amber);
}

@container wrap (max-width: 900px) {
    .m-aim__ap .m-ap__row {
        height: auto;
    }

    .m-aim .m-ap__media {
        height: 0;
        margin-bottom: 0;
    }

    .m-aim .m-ap__card.is-active .m-ap__media {
        height: 300px;
        margin-bottom: -20px;
    }

    .m-aim__ui {
        inset: 16px 20px 20px;
        padding: 14px 16px;
    }
}

/*  */

.m-ap__card {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    background: #fff;
    border-radius: var(--r-xl);
    padding: var(--card-pad-lg);
    cursor: pointer;
    overflow: visible;
    transition:
        flex-grow 0.75s var(--m-swap),
        box-shadow 0.5s;
    z-index: 0;
}

.m-ap__card.is-active {
    flex-grow: 1.55;
}

.m-ap__card:not(:last-child)::after {
    content: "";
    position: absolute;
    left: calc(100% - 14px);
    top: 14px;
    width: 70px;
    height: 164px;
    background-size: 75%;
    background-repeat: no-repeat;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIGNsYXNzPSIiIHZpZXdCb3g9IjAgMCAzNCA2NCIgZmlsbD0iI2ZmZmZmZiIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+PHBhdGggZD0iTTAgMEMwIDAgMiAyMyAxNyAyM0MzMiAyMyAzNCAwIDM0IDBWNjRDMzQgNjQgMzIgNDEgMTcgNDFDMiA0MSAwIDY0IDAgNjRWMFoiIGNsYXNzPSJmaWxsLSNmZmZmZmYiPjwvcGF0aD48L3N2Zz4=);
    z-index: 1;
}

.m-ap__card h3 {
    font-size: 1.75rem;
    line-height: 1.3;
    font-weight: var(--fw-medium);
    color: var(--c-navy);
}

.m-ap__btn {
    font: inherit;
    color: inherit;
    text-align: left;
}

.m-ap__btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.m-ap__card:focus-within {
    box-shadow: var(--focus-ring);
}

.m-ap__btn:focus-visible {
    box-shadow: none;
}

.m-ap__card p {
    margin-top: 14px;
    font-size: var(--fs-md);
    max-width: 340px;
}

.m-ap__card .c-bullets {
    list-style-type: none;
    gap: 12px;
    margin-top: var(--sp-5);
}

.m-ap__card .c-bullets li::before {
    opacity: 0;
}

.m-ap__card .c-bullets li {
    padding: 0;
    display: flex;
    gap: 10px;
}

.m-ap__card .c-bullets li>span {
    flex: 1;
    height: fit-content;
    display: block;
}

.m-ap__media {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60%;
    border-radius: 0 0 var(--r-xl) var(--r-xl);
    overflow: hidden;
    z-index: -1;
}

.m-ap__card:not(.is-active) .m-ap__media::before,
.m-ap__card:not(.is-active) .m-ap__media::after {
    position: absolute;
    content: "";
    width: 350px;
    height: 350px;
    background: linear-gradient(180deg, rgba(220, 239, 160, 0.55) 0%, rgba(255, 255, 255, 0) 89.14%);
    border-radius: 100%;
    left: -50%;
    opacity: 0.5;
}

.m-ap__card:not(.is-active) .m-ap__media::after {
    right: -70%;
    border-radius: 0;
    left: unset;
}

.m-ap__card:nth-child(2):not(.is-active) .m-ap__media::before,
.m-ap__card:nth-child(2):not(.is-active) .m-ap__media::after {
    background: linear-gradient(180deg, rgba(142, 193, 246, 0.35) 0%, rgba(255, 255, 255, 0) 89.14%);
}

.m-ap__card:nth-child(3):not(.is-active) .m-ap__media::before,
.m-ap__card:nth-child(3):not(.is-active) .m-ap__media::after {
    background: linear-gradient(180deg, rgba(196, 181, 253, 0.35) 0%, rgba(255, 255, 255, 0) 89.14%);
}

.m-ap__card:nth-child(4):not(.is-active) .m-ap__media::before,
.m-ap__card:nth-child(4):not(.is-active) .m-ap__media::after {
    background: linear-gradient(180deg, rgba(127, 224, 211, 0.35) 0%, rgba(255, 255, 255, 0) 90%);
}

.m-ap__photo {
    position: absolute;
    inset: 0;
    clip-path: inset(100% 0 0 0);
    transition: clip-path 0.8s var(--m-swap);
    padding: 22px;
    padding-top: 0;
}

.m-ap__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15);
    transition: transform 1.2s var(--m-ease);
    margin-left: auto;
    margin-right: auto;
    background-color: var(--c-white);
    border-radius: var(--r-xl);
}

.m-ap__media--cutout .m-ap__photo {
    background: var(--img-approach-card) center / cover;
    background-repeat: no-repeat;
}

.m-ap__media--cutout .m-ap__photo img {
    object-fit: contain;
    object-position: bottom;
}

.m-ap__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 40%, rgba(95, 180, 250, 0.3) 75%, rgba(160, 230, 170, 0.4) 100%);
}

.m-ap__card.is-active .m-ap__photo {
    clip-path: inset(0 0 0 0);
    transition-delay: 0.25s;
}

.m-ap__card.is-active .m-ap__photo img {
    transform: none;
    transition-delay: 0.25s;
}

.m-ap__chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 10px;
    padding: 7px 12px 7px 7px;
    font-size: 13.5px;
    white-space: nowrap;
    box-shadow: 0 10px 22px -12px rgba(30, 40, 70, 0.45);
    opacity: 0;
    transform: translateY(12px) scale(0.85);
    transition:
        opacity 0.3s,
        transform 0.3s;
}

.m-ap__card.is-active .m-ap__chip {
    opacity: 1;
    transform: none;
    transition:
        opacity 0.45s,
        transform 0.7s var(--m-spring);
}

.m-ap__card.is-active .m-ap__chip.is-n0 {
    transition-delay: 0.6s;
}

.m-ap__card.is-active .m-ap__chip.is-n1 {
    transition-delay: 0.72s;
}

.m-ap__card.is-active .m-ap__chip.is-n2 {
    transition-delay: 0.84s;
}

.m-ap__card.is-active .m-ap__chip.is-n3 {
    transition-delay: 0.96s;
}

.motion .m-ap__card.is-active .m-ap__chip {
    animation: float 4s ease-in-out infinite;
}

.motion .m-ap__card.is-active .m-ap__chip.is-n1 {
    animation-delay: -1s;
}

.motion .m-ap__card.is-active .m-ap__chip.is-n2 {
    animation-delay: -2s;
}

.motion .m-ap__card.is-active .m-ap__chip.is-n3 {
    animation-delay: -3s;
}

.m-ap__chip--c1 {
    left: 12px;
    top: 22%;
}

.m-ap__chip--c2 {
    right: 12px;
    top: 8%;
}

.m-ap__chip--c3 {
    right: 8px;
    top: 44%;
}

.m-ap__chip--c4 {
    left: 14px;
    top: 70%;
}

@container wrap (max-width: 1366px) {

    .m-ap__card-text,
    .m-aim__steps-wrap {
        min-width: 270px;
    }
}

@container wrap (max-width: 900px) {
    .m-ap__row {
        flex-direction: column;
        height: auto;
        gap: 12px;
    }

    .m-ap__card {
        flex: none;
        padding: 20px;
    }

    .m-ap__card:not(:last-child)::after {
        display: none;
    }

    .m-ap__card p {
        max-width: none;
    }

    .m-ap__media {
        position: relative;
        height: 0;
        margin: 0 -20px -20px;
        transition:
            height 0.7s var(--m-swap),
            margin 0.7s var(--m-swap);
    }

    .m-ap__card.is-active .m-ap__media {
        height: 280px;
        margin-top: 16px;
    }

    .m-aim__ap .m-ap__row {
        height: auto;
    }

    .m-aim .m-ap__media {
        height: 0;
        margin-bottom: 0;
    }

    .m-aim .m-ap__card.is-active .m-ap__media {
        height: 300px;
        margin-bottom: -20px;
    }
}