/* --- WHY CHOOSE US SECTION --- */
.section-why {
    background-color: var(--bg-main);
    padding-bottom: 6rem;
}

.section-why .section-header {
    margin-bottom: 4rem;
}

/* 6-Column Grid to allow perfect centering of 5 items */
.why-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

/* Base Card Styling */
.why-card {
    grid-column: span 2; /* 3 cards fit on the top row (2+2+2 = 6) */
    position: relative;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

/* Cards 4 & 5 span 3 columns each to center them perfectly on the bottom row (3+3 = 6) */
.why-card.wide {
    grid-column: span 3;
}

/* The Sliding Background Overlay */
.why-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: var(--bg-dark);
    z-index: -1;
    transition: height 0.4s var(--ease-out);
}

.why-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.why-icon {
    color: var(--accent);
    background: rgba(132, 204, 22, 0.1);
    padding: 1rem;
    border-radius: var(--radius-md);
    transition: all 0.4s var(--ease-out);
}

.why-num {
    font-size: 2rem;
    font-weight: 800;
    color: rgba(0,0,0,0.05);
    line-height: 1;
    transition: color 0.4s var(--ease-out);
}

.why-title {
    font-size: 1.3rem;
    color: var(--bg-dark);
    margin-bottom: 1rem;
    transition: color 0.4s var(--ease-out);
}

/* The hidden description that reveals on hover */
.why-desc {
    color: rgba(255,255,255,0.8);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s var(--ease-out);
    margin: 0;
    font-size: 0.95rem;
}

/* --- HOVER EFFECTS --- */
.why-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: transparent;
}

.why-card:hover .why-bg {
    height: 100%;
}

.why-card:hover .why-icon {
    color: var(--bg-dark);
    background: var(--accent);
}

.why-card:hover .why-num {
    color: rgba(255,255,255,0.1);
}

.why-card:hover .why-title {
    color: var(--text-light);
}

.why-card:hover .why-desc {
    opacity: 1;
    transform: translateY(0);
    /* Small delay so the background slides up first before text appears */
    transition-delay: 0.1s; 
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    /* Change to a 2-column layout */
    .why-card, .why-card.wide {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    /* Change to a 1-column stacked layout */
    .why-grid {
        gap: 1rem;
    }
    
    .why-card, .why-card.wide {
        grid-column: span 6;
        min-height: auto;
        padding: 2rem;
    }
    
    /* On mobile devices, we show the description permanently since hover is difficult */
    .why-bg {
        height: 100%;
    }
    .why-icon {
        color: var(--bg-dark);
        background: var(--accent);
    }
    .why-title {
        color: var(--text-light);
    }
    .why-desc {
        opacity: 1;
        transform: translateY(0);
    }
}