/* Zidio-style "What we do best" — sticky stack + scroll reveal */
html.page-about,
body.page-about {
    overflow-x: clip;
}

.zidio-expertise {
    padding: 96px 0;
    background: #f8fafc;
    overflow: visible;
}

.zidio-expertise__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 1024px) {
    .zidio-expertise__inner {
        padding: 0 64px;
    }
}

.zidio-expertise__header {
    margin-bottom: 64px;
}

.zidio-expertise__lead {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #475569;
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.625;
}

.zidio-expertise__grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
    align-items: flex-start;
    justify-content: space-between;
}

@media (min-width: 992px) {
    .zidio-expertise__grid {
        flex-direction: row;
        gap: 80px;
        align-items: flex-start;
    }
}

.zidio-expertise__col {
    width: 100%;
}

@media (min-width: 992px) {
    .zidio-expertise__col {
        width: 48%;
    }
}

/* Sticky stack — matches Zidio: top 80px + 20px per card */
.zidio-expertise__stack {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-bottom: 10vh;
}

.zidio-expertise__sticky-item {
    width: 100%;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.4s ease;
}

.zidio-expertise__sticky-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 992px) {
    .zidio-expertise__sticky-item {
        position: sticky;
    }

    .zidio-expertise__stack--cards .zidio-expertise__sticky-item:nth-child(1) {
        top: 80px;
        z-index: 1;
    }

    .zidio-expertise__stack--cards .zidio-expertise__sticky-item:nth-child(2) {
        top: 100px;
        z-index: 2;
    }

    .zidio-expertise__stack--cards .zidio-expertise__sticky-item:nth-child(3) {
        top: 120px;
        z-index: 3;
    }

    .zidio-expertise__stack--cards .zidio-expertise__sticky-item:nth-child(4) {
        top: 140px;
        z-index: 4;
    }

    .zidio-expertise__stack--cards .zidio-expertise__sticky-item:nth-child(5) {
        top: 160px;
        z-index: 5;
    }

    .zidio-expertise__stack--cards .zidio-expertise__sticky-item:nth-child(6) {
        top: 180px;
        z-index: 6;
    }

    .zidio-expertise__stack--stats .zidio-expertise__sticky-item:nth-child(1) {
        top: 80px;
        z-index: 1;
    }

    .zidio-expertise__stack--stats .zidio-expertise__sticky-item:nth-child(2) {
        top: 100px;
        z-index: 2;
    }

    .zidio-expertise__stack--stats .zidio-expertise__sticky-item:nth-child(3) {
        top: 120px;
        z-index: 3;
    }

    .zidio-expertise__stack--stats .zidio-expertise__sticky-item:nth-child(4) {
        top: 140px;
        z-index: 4;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zidio-expertise__sticky-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.zidio-expertise__card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 32px;
    border-radius: 24px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.06);
    transition: border-color 0.5s ease, background 0.5s ease, box-shadow 0.5s ease, transform 0.5s ease;
}

.zidio-expertise__card:hover {
    border-color: #60a5fa;
    background: linear-gradient(to bottom right, #eff6ff, #eef2ff);
    box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.25);
}

.zidio-expertise__card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
}

.zidio-expertise__sticky-item:hover .zidio-expertise__card-icon {
    transform: scale(1.1);
}

.zidio-expertise__card-icon i {
    font-size: 32px;
    color: #ffffff;
}

.zidio-expertise__card-icon--blue {
    background: linear-gradient(to bottom right, #3b82f6, #6366f1);
}

.zidio-expertise__card-icon--purple {
    background: linear-gradient(to bottom right, #a855f7, #ec4899);
}

.zidio-expertise__card-icon--orange {
    background: linear-gradient(to bottom right, #f97316, #ef4444);
}

.zidio-expertise__card-icon--red {
    background: linear-gradient(to bottom right, #ef4444, #f43f5e);
}

.zidio-expertise__card-icon--cyan {
    background: linear-gradient(to bottom right, #06b6d4, #3b82f6);
}

.zidio-expertise__card-icon--emerald {
    background: linear-gradient(to bottom right, #10b981, #14b8a6);
}

.zidio-expertise__card-body h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.zidio-expertise__sticky-item:hover .zidio-expertise__card-body h3 {
    color: #2563eb;
}

.zidio-expertise__card-body p {
    font-size: 1rem;
    color: #475569;
    line-height: 1.625;
    margin: 0;
}

.zidio-expertise__cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    background: #0f172a;
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    margin-top: 8px;
}

.zidio-expertise__cta:hover {
    color: #34d399;
    background: #1e293b;
    transform: scale(1.05);
}

.zidio-expertise__cta i {
    font-size: 1.25rem;
}

.zidio-expertise__stat-card {
    padding: 32px;
    border-radius: 24px;
    color: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.5s ease, transform 0.5s ease;
}

.zidio-expertise__sticky-item:hover .zidio-expertise__stat-card {
    transform: scale(1.03);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.zidio-expertise__stat-card--blue {
    background: linear-gradient(to bottom right, #2563eb, #4f46e5);
}

.zidio-expertise__stat-card--purple {
    background: linear-gradient(to bottom right, #9333ea, #db2777);
}

.zidio-expertise__stat-card--red {
    background: linear-gradient(to bottom right, #dc2626, #e11d48);
}

.zidio-expertise__stat-card--cyan {
    background: linear-gradient(to bottom right, #0891b2, #2563eb);
}

.zidio-expertise__stat-card > i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    opacity: 0.95;
}

.zidio-expertise__stat-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
}

.zidio-expertise__stat-card > p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.625;
    margin-bottom: 24px;
}

.zidio-expertise__stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.zidio-expertise__stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
}

.zidio-expertise__stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
}
