/* ==========================================================================
   BLOCK: OUR APPROACH PROCESS FLOW (GLASSMORPHIC CARDS + IRIDESCENT RIBBON)
   Theme: Cemetrix V1
   ========================================================================== */

.cx-approach-section {
    position: relative;
    width: 100%;
    background-color: #ffffff;
    overflow: hidden;
    box-sizing: border-box;
}

/* Background Ribbon Wrap */
.cx-approach-ribbon-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.cx-approach-ribbon-img {
    position: absolute;
    bottom: -3%;
    left: 0;
    width: 100%;
    min-width: 1100px;
    height: 90%;
    object-fit: contain;
    object-position: bottom left;
    pointer-events: none;
    user-select: none;
}

/* Optional Ambient Floating Animation */
.cx-approach-ribbon-img.cx-ribbon-float {
    animation: cxRibbonAmbientFloat 10s ease-in-out infinite alternate;
}

@keyframes cxRibbonAmbientFloat {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.015) rotate(0.3deg);
    }
    100% {
        transform: translateY(6px) scale(0.99) rotate(-0.2deg);
    }
}

/* Main Container */
.cx-approach-container {
    position: relative;
    z-index: 2;
    padding-left: 32px;
    padding-right: 32px;
}

/* --------------------------------------------------------------------------
   HEADER AREA
   -------------------------------------------------------------------------- */
.cx-approach-header {
    margin-bottom: 60px;
    max-width: 900px;
}

.cx-approach-eyebrow {
    display: inline-block;
    font-family: 'Space Grotesk', 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--steel, #3A4A5C);
    margin-bottom: 22px;
}

.cx-approach-headline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 600;
    line-height: 1.28;
    color: var(--ink, #0E1B2A);
    letter-spacing: -0.025em;
    margin: 0;
}

.cx-approach-headline p {
    margin: 0;
    display: inline;
}

.cx-approach-subtext {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--steel-soft, #5C7085);
}

/* --------------------------------------------------------------------------
   PROCESS CARDS CONTAINER & LAYOUTS
   -------------------------------------------------------------------------- */
.cx-approach-cards {
    position: relative;
    width: 100%;
}

/* Layout Mode: Staggered Cascade (matching screenshot) */
.cx-layout-staggered {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    padding-top: 20px;
    padding-bottom: 70px;
}

.cx-layout-staggered .cx-approach-card {
    flex: 1 1 0;
    min-width: 220px;
    max-width: 275px;
    margin-right: -16px; /* Gentle overlap matching design */
}

.cx-layout-staggered .cx-approach-card:last-child {
    margin-right: 0;
}

/* Stagger Offsets */
.cx-offset-standard {
    transform: translateY(0);
    z-index: 2;
}

.cx-offset-lower {
    transform: translateY(42px);
    z-index: 3;
}

.cx-offset-higher {
    transform: translateY(-12px);
    z-index: 4;
}

/* Layout Mode: Clean Grid */
.cx-layout-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    padding-bottom: 30px;
}

/* --------------------------------------------------------------------------
   CARD COMPONENT & GLASSMORPHISM
   -------------------------------------------------------------------------- */
.cx-approach-card {
    position: relative;
    border-radius: 20px;
    padding: 32px 28px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease,
                background-color 0.3s ease;
    overflow: hidden;
}

/* Top Subtle Specular Light Reflection */
.cx-approach-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 35%, rgba(255,255,255,0.9) 65%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

/* Subtle corner glossy shine */
.cx-card-glass-shine {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 65%);
    pointer-events: none;
    z-index: 1;
}

/* Hover State */
.cx-approach-card:hover {
    transform: translateY(-8px) scale(1.025) !important;
    z-index: 10 !important;
    box-shadow: 0 24px 50px -12px rgba(14, 27, 42, 0.16), 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: rgba(255, 255, 255, 1) !important;
}

/* --------------------------------------------------------------------------
   CARD TINTS & ACCENTS (FROM SCREENSHOT)
   -------------------------------------------------------------------------- */
/* 01 Assess: Cool Ice Blue Frosted Glass */
.cx-tint-ice_blue,
.cx-tint-default {
    background: rgba(240, 246, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 16px 36px -8px rgba(30, 58, 138, 0.07), 0 2px 6px rgba(0, 0, 0, 0.03);
}

/* 02 Design: Soft Sage Mint Frosted Glass */
.cx-tint-mint {
    background: rgba(225, 248, 235, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 36px -8px rgba(16, 185, 129, 0.08), 0 2px 6px rgba(0, 0, 0, 0.03);
}

/* 03 Train: Soft Lavender / Lilac Frosted Glass */
.cx-tint-lavender {
    background: rgba(246, 240, 254, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 36px -8px rgba(139, 92, 246, 0.08), 0 2px 6px rgba(0, 0, 0, 0.03);
}

/* 04 Measure: Soft Periwinkle Blue Frosted Glass */
.cx-tint-periwinkle {
    background: rgba(234, 241, 254, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 36px -8px rgba(59, 130, 246, 0.08), 0 2px 6px rgba(0, 0, 0, 0.03);
}

/* --------------------------------------------------------------------------
   CARD INNER CONTENT
   -------------------------------------------------------------------------- */
.cx-card-header {
    position: relative;
    z-index: 2;
    margin-bottom: 34px;
}

.cx-card-step {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    color: rgba(14, 27, 42, 0.65);
    letter-spacing: 0.04em;
    display: inline-block;
}

.cx-card-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cx-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--ink, #0E1B2A);
    margin: 0 0 14px 0;
    letter-spacing: -0.015em;
}

.cx-card-desc {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(14, 27, 42, 0.72);
    margin: 0;
}

.cx-card-desc p {
    margin: 0 0 8px 0;
}

.cx-card-desc p:last-child {
    margin-bottom: 0;
}

/* Clickable Stretched Link */
.cx-card-stretched-link {
    position: absolute;
    inset: 0;
    z-index: 5;
    text-indent: -9999px;
}

/* --------------------------------------------------------------------------
   INTERSECTION ANIMATIONS (FADE IN UP)
   -------------------------------------------------------------------------- */
.cx-anim-header,
.cx-anim-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.cx-anim-ready .cx-anim-header.is-in-view {
    opacity: 1;
    transform: translateY(0);
}

.cx-anim-ready .cx-anim-card.is-in-view {
    opacity: 1;
}

/* Restore the stagger offset in the animation end state */
.cx-anim-ready .cx-anim-card.is-in-view.cx-offset-standard {
    transform: translateY(0);
}

.cx-anim-ready .cx-anim-card.is-in-view.cx-offset-lower {
    transform: translateY(42px);
}

.cx-anim-ready .cx-anim-card.is-in-view.cx-offset-higher {
    transform: translateY(-12px);
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .cx-approach-header {
        margin-bottom: 45px;
    }

    .cx-layout-staggered {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding-bottom: 40px;
    }

    .cx-layout-staggered .cx-approach-card {
        max-width: 100%;
        margin-right: 0;
        transform: none !important;
    }

    .cx-layout-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .cx-approach-ribbon-img {
        min-width: 900px;
        height: 100%;
        bottom: 0;
    }
}

@media (max-width: 640px) {
    .cx-approach-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cx-approach-header {
        margin-bottom: 35px;
    }

    .cx-approach-headline {
        font-size: 24px;
        line-height: 1.35;
    }

    .cx-layout-staggered,
    .cx-layout-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cx-approach-card {
        min-height: auto;
        padding: 26px 22px;
    }

    .cx-card-header {
        margin-bottom: 20px;
    }

    .cx-approach-ribbon-img {
        display: none; /* Keep mobile view clean and ultra-fast */
    }
}

