/* =====================================================
   EVERYTHING YOU NEED TO KNOW ABOUT PROTEIN INTAKE
===================================================== */

.tpc-pi-section {
    padding: 90px 20px;
    background: #f8faf8;
}

.tpc-pi-header {
    max-width: 820px;
    margin: 0 auto 60px;
    text-align: center;
}

.tpc-pi-title {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
}

.tpc-pi-title::after {
    content: "";
    display: block;
    width: 90px;
    height: 4px;
    margin: 18px auto 0;
    background: #22c55e;
    border-radius: 999px;
}

.tpc-pi-subtitle {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #6b7280;
}

.tpc-pi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tpc-pi-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 35px;
    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease,
        background-color .35s ease;
}

/* Animated top border */

.tpc-pi-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 4px;
    background: #22c55e;
    transition: all .35s ease;
    transform: translateX(-50%);
}

/* Hover */

.tpc-pi-card:hover {
    transform: translateY(-8px);
    border-color: #22c55e;
    background: #fcfffd;
    box-shadow:
        0 20px 45px rgba(34, 197, 94, .12),
        0 8px 20px rgba(0,0,0,.06);
}

.tpc-pi-card:hover::before {
    width: 100%;
}

.tpc-pi-card-title {
    margin: 0 0 18px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #111827;
    transition: color .3s ease;
}

.tpc-pi-card:hover .tpc-pi-card-title {
    color: #16a34a;
}

.tpc-pi-card-text {
    margin-bottom: 24px;
    color: #4b5563;
    line-height: 1.75;
    font-size: 1rem;
}

.tpc-pi-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tpc-pi-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: #374151;
    font-weight: 500;
    transition:
        transform .25s ease,
        color .25s ease;
}

.tpc-pi-card:hover .tpc-pi-list-item {
    transform: translateX(6px);
    color: #111827;
}

/* Mobile tap animation */

.tpc-pi-card:active {
    transform: scale(.98);
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {

    .tpc-pi-card,
    .tpc-pi-card::before,
    .tpc-pi-card-title,
    .tpc-pi-list-item {
        transition: none;
    }

}

/* Tablet */

@media (max-width: 992px) {

    .tpc-pi-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

}

/* Mobile */

@media (max-width: 768px) {

    .tpc-pi-section {
        padding: 70px 20px;
    }

    .tpc-pi-card {
        padding: 28px;
    }

    .tpc-pi-title {
        font-size: 2rem;
    }

    .tpc-pi-subtitle {
        font-size: 1rem;
    }

}