/* Our Process — 3×2 numbered cards (custom-post-default: data-shortcode="process-cards") */

/* Digital Landscape post (slug: digital-landscape): 2 cards per row, full-width cells — same card look as process grid */
.process-page-digital-landscape .process-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.process-page-digital-landscape .process-card {
    width: 90%;
    max-width: 100%;
    min-width: 0;
}

.process-page-digital-landscape .process-card__desc {
    /* max-width: min(48ch, 100%); */
}

.process-card-main {
    position: relative;
    padding: 4.5rem 0 4rem;
    background: #fff;
    color: #0a0a0a;
    overflow: hidden;
}

.process-card-main .process-container {
    max-width: 100%;
    margin: 0 auto;
}

.process-card-main .process-container > .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
}

/* Centered wavy background graphic */
.process-card-main::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 32%;
    transform: translate(-50%, -50%);
    width: min(100%, 100%);
    height: min(70vh, 520px);
    background-image: url("../../images/process-sec-bg.png");
    background-repeat: no-repeat;
    background-position: top;
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 1;
}

.process-card-main .process-container > .container {
    position: relative;
    z-index: 1;
}

.process-card-main .process-container > .container > div:first-child {
    text-align: center;
    margin-bottom: 2.75rem;
}

.process-heading {
    font-family:
    "Aeonik",
    "Inter",
    -apple-system,
    "Segoe UI",
    sans-serif;
    font-size: clamp(1.75rem, 3.2vw, 5.5rem);
    font-weight: 600;
    color: #0a0a0a;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.process-card-main .bottom-row.custom-shortcode {
    width: 100%;
    min-height: 2rem;
}

/* Grid */
.process-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem 1.5rem;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    padding-top: clamp(3.5rem, 12vw, 6rem);
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .process-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.15rem 1.25rem;
    }
}

@media (max-width: 640px) {
    .process-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .process-card__desc {
        max-width: none;
    }
}

/* Card — Figma gradient on a sky base (bottom stop is α=0, so a base color is required or it shows white) */
.process-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
    padding: 1.75rem 1.25rem 1.5rem;
    border-radius: 10px;
    background:
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.6) 0%,
            rgba(155, 205, 238, 0) 100%
        ),
        linear-gradient(to bottom, #f0f7ff 0%, #d8ebf5 100%);
    border: 1px solid #d1e5f5;
    box-shadow: none;
    height: 350px;
    width: 290px;
}

.process-card__num-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.process-card__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 7.25rem;
    height: 7.25rem;
    border-radius: 50%;
    border: 1px solid #3387C9;
    font-family: "Inter", Aeonik, "Segoe UI", sans-serif;
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #3d4a58;
    background: #fff;
}

.process-card__title {
    font-family: "Inter", Aeonik, "Segoe UI", sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0a0a0a;
    margin: 0 0 0.65rem;
    line-height: 1.3;
}

.process-card__desc {
    font-family: "Inter", Aeonik, "Segoe UI", sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #4a4f57;
    margin: 0;
    line-height: 1.55;
    max-width: 23ch;
}

/* ── Viewport: cards enter from left / right (replays when section re-enters) ── */
@keyframes process-card-slide-left {
    from {
        opacity: 0;
        transform: translate3d(-52px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes process-card-slide-right {
    from {
        opacity: 0;
        transform: translate3d(52px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.process-card-main:not(.process-card-main--in-view) .process-cards-grid .process-card:nth-child(odd) {
    opacity: 0;
    transform: translate3d(-32px, 0, 0);
}

.process-card-main:not(.process-card-main--in-view) .process-cards-grid .process-card:nth-child(even) {
    opacity: 0;
    transform: translate3d(32px, 0, 0);
}

.process-card-main--in-view .process-cards-grid .process-card {
    /* Longer ease-out so movement reads while the block is in view */
    animation-timing-function: cubic-bezier(0.22, 0.99, 0.35, 1);
    animation-duration: 1.45s;
    animation-fill-mode: both;
    backface-visibility: hidden;
}

/* Short pause after section qualifies, then stagger so the row finishes over ~2.5s+ */
.process-card-main--in-view .process-cards-grid .process-card:nth-child(1) {
    animation-name: process-card-slide-left;
    animation-delay: 0.12s;
}

.process-card-main--in-view .process-cards-grid .process-card:nth-child(2) {
    animation-name: process-card-slide-right;
    animation-delay: 0.32s;
}

.process-card-main--in-view .process-cards-grid .process-card:nth-child(3) {
    animation-name: process-card-slide-left;
    animation-delay: 0.52s;
}

.process-card-main--in-view .process-cards-grid .process-card:nth-child(4) {
    animation-name: process-card-slide-right;
    animation-delay: 0.72s;
}

.process-card-main--in-view .process-cards-grid .process-card:nth-child(5) {
    animation-name: process-card-slide-left;
    animation-delay: 0.92s;
}

.process-card-main--in-view .process-cards-grid .process-card:nth-child(6) {
    animation-name: process-card-slide-right;
    animation-delay: 1.12s;
}

@media (max-width: 640px) {
    @keyframes process-card-slide-left {
        from {
            opacity: 0;
            transform: translate3d(-36px, 0, 0);
        }
        to {
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }
    }

    @keyframes process-card-slide-right {
        from {
            opacity: 0;
            transform: translate3d(36px, 0, 0);
        }
        to {
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }
    }

    .process-card-main:not(.process-card-main--in-view) .process-cards-grid .process-card:nth-child(odd) {
        transform: translate3d(-24px, 0, 0);
    }

    .process-card-main:not(.process-card-main--in-view) .process-cards-grid .process-card:nth-child(even) {
        transform: translate3d(24px, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .process-card-main:not(.process-card-main--in-view) .process-cards-grid .process-card,
    .process-card-main--in-view .process-cards-grid .process-card {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

.process-cards-empty,
.process-cards-error {
    text-align: center;
    color: #4a4f57;
    font-size: 0.95rem;
    margin: 0;
    padding: 1rem 0;
}

/* CTA (in Ghost HTML below shortcode) */
.process-card-main .process-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 12rem;
    margin: 2.75rem auto 0;
    padding: 0.7rem 2rem;
    border-radius: 10px;
    font-family: "Inter", Aeonik, "Segoe UI", sans-serif;
    font-size: 1.225rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: #4a7bc8;
    border: none;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(74, 123, 200, 0.25);
}

.process-card-main .process-btn:hover {
    background: #3d6bb3;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(74, 123, 200, 0.35);
}

/* ── Desktop (≥1200px): original layout, spacing, fixed card size — do not change below in smaller breakpoints without checking ── */
@media (min-width: 1200px) {
    .process-card-main .process-container > .container {
        padding: 8rem 12.5rem;
    }

    .process-cards-grid {
        padding-top: 5rem;
    }

    .process-card {
        width: 290px;
        height: 350px;
    }
}

/* ── Large tablet / small laptop: no fixed card width, wave graphic scales ── */
@media (max-width: 1199px) {
    .process-card-main {
        padding: 3.25rem 0 3.25rem;
    }

    .process-card-main .process-container > .container > div:first-child {
        margin-bottom: 2rem;
    }

    .process-card-main::before {
        top: 28%;
        height: min(50vh, 420px);
        background-size: cover;
        background-position: center top;
    }

    .process-card {
        width: 100%;
        max-width: 100%;
        min-height: 0;
        height: auto;
        min-height: 280px;
        padding: 1.5rem 1.25rem 1.35rem;
    }

    .process-card__num {
        width: 4.5rem;
        height: 4.5rem;
        font-size: 1.5rem;
    }

    .process-card__title {
        font-size: clamp(1.15rem, 2.1vw, 1.6rem);
    }

    .process-card__desc {
        font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    }

    .process-card-main .process-btn {
        margin-top: 2.25rem;
    }
}

/* ── Tablet portrait ── */
@media (max-width: 900px) {
    .process-card-main::before {
        top: 22%;
        height: min(45vh, 360px);
        opacity: 0.9;
    }

    .process-cards-grid {
        padding-top: clamp(2.5rem, 10vw, 4.5rem);
    }
}

/* ── Phone ── */
@media (max-width: 640px) {
    .process-card-main {
        padding: 2.5rem 0 2.75rem;
    }

    .process-card-main::before {
        top: 18%;
        width: 100%;
        height: min(38vh, 300px);
        background-size: cover;
    }

    .process-card-main .process-container > .container > div:first-child {
        margin-bottom: 1.5rem;
    }

    .process-cards-grid {
        padding-top: 2.25rem;
    }

    .process-card {
        min-height: 0;
        padding: 1.35rem 1rem 1.25rem;
        gap: 1rem;
    }

    .process-card__num-wrap {
        margin-bottom: 0.5rem;
    }

    .process-card__num {
        width: 3.75rem;
        height: 3.75rem;
        font-size: 1.25rem;
    }

    .process-card__title {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }

    .process-card__desc {
        font-size: 0.9375rem;
        line-height: 1.5;
    }

    .process-card-main .process-btn {
        width: 100%;
        max-width: 22rem;
        min-width: 0;
        margin-top: 2rem;
        padding: 0.75rem 1.5rem;
        font-size: 1.05rem;
    }
}

/* ── Very small phones ── */
@media (max-width: 380px) {
    .process-card-main .process-container > .container {
        padding: 0 1rem;
    }

    .process-card__num {
        width: 3.25rem;
        height: 3.25rem;
        font-size: 1.1rem;
    }
}
