/*
 * MediRoyal About Us — Pillars Section
 * Source: about_us_2.html — .ab-pillars-grid
 * Depends on: design-tokens.css (plum-*, sage-*, blush-*, white, line, paper, r-*, ease, shadow-*)
 */

/* ── Pillars Grid ── */
.log-co-ab-pillars-grid {
    max-width: 1220px;
    margin: 56px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.log-co-pillar-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 40px 30px 34px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}

.log-co-pillar-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.log-co-pillar-card:nth-child(2) {
    transform: translateY(-20px);
}

.log-co-pillar-card:nth-child(2):hover {
    transform: translateY(-26px);
}

/* Gradient top border reveal on hover */
.log-co-pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sage-500), var(--plum-600));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s var(--ease);
}

.log-co-pillar-card:hover::before {
    transform: scaleX(1);
}

.log-co-pillar-ghost-num {
    position: absolute;
    top: 0;
    right: 14px;
    font-family: var(--display);
    font-size: 72px;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px var(--line);
    z-index: 0;
    line-height: 1;
}

.log-co-pillar-icon {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--blush-100);
    color: var(--plum-700);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    animation: iconFloat 3s ease-in-out infinite;
    transition: background .3s var(--ease), color .3s var(--ease);
}

.log-co-pillar-card:nth-child(1) .log-co-pillar-icon {
    animation-delay: 0s;
}

.log-co-pillar-card:nth-child(2) .log-co-pillar-icon {
    animation-delay: -1s;
}

.log-co-pillar-card:nth-child(3) .log-co-pillar-icon {
    animation-delay: -2s;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-6px) rotate(-4deg);
    }
    50% {
        transform: translateY(-3px) rotate(0deg);
    }
    75% {
        transform: translateY(-8px) rotate(4deg);
    }
}

.log-co-pillar-card:hover .log-co-pillar-icon {
    background: var(--plum-700);
    color: #fff;
    animation: iconJelly .55s var(--ease) forwards;
}

@keyframes iconJelly {
    0% {
        transform: scale(1) rotate(0deg);
    }
    18% {
        transform: scale(1.22) rotate(-8deg);
    }
    36% {
        transform: scale(.9) rotate(6deg);
    }
    54% {
        transform: scale(1.12) rotate(-4deg);
    }
    72% {
        transform: scale(.97) rotate(2deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* ── Card content ── */
.log-co-pillar-card h3 {
    position: relative;
    z-index: 1;
    font-family: var(--display);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.log-co-pillar-card p {
    position: relative;
    z-index: 1;
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--gray-600);
    min-height: 76px;
}

.log-co-pillar-tag {
    position: relative;
    z-index: 1;
    display: inline-flex;
    margin-top: 14px;
    background: var(--paper);
    color: var(--plum-700);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: var(--r-pill);
}

/* ── Responsive ── */
@media (max-width: 980px) {
    .log-co-ab-pillars-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin-left: auto;
        margin-right: auto;
    }

    .log-co-pillar-card:nth-child(2) {
        transform: none;
    }

    .log-co-pillar-card:nth-child(2):hover {
        transform: translateY(-6px);
    }
}
