/* =====================================================
   Why Vista Arenal Adventure Park Section Styles
   ===================================================== */

/* Section Container */
.why-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.why-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--primary-green) 0%,
        var(--accent-blue) 50%,
        var(--sunset-orange) 100%
    );
}

/* Grid Layout */
.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }
}

/* Why Card Styling */
.why-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.why-card:hover::before {
    transform: scaleX(1);
}

/* Card Image Container */
.why-card .card-image-container {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.why-card .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.why-card .card-image.img-safety {
    object-position: center top;
}

.why-card .card-image.img-experts {
    object-position: center top;
}

.why-card:hover .card-image {
    transform: scale(1.08);
}

.why-card .card-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.why-card:hover .card-image-container::after {
    opacity: 1;
}

/* Activity Content */
.why-card .activity-content {
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

/* Icon Wrapper */
.why-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: -60px auto 20px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.why-card:hover .why-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.why-icon {
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.safety-icon {
    filter: drop-shadow(0 2px 4px rgba(0, 168, 89, 0.3));
}

.guides-icon {
    filter: drop-shadow(0 2px 4px rgba(2, 119, 189, 0.3));
}

/* Card Title */
.why-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--earth-brown);
    margin-bottom: 15px;
    text-align: center;
    font-family: var(--heading-font);
    line-height: 1.3;
}

/* Card Description */
.why-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
    text-align: center;
    flex-grow: 1;
}

/* Features List */
.why-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.why-features .feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.why-features .feature-item:hover {
    background: var(--warm-sand);
    transform: translateX(5px);
}

.why-features .feature-item span[aria-hidden="true"] {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .why-section {
        padding: 60px 0;
    }

    .why-card .card-image-container {
        height: 220px;
    }

    .why-icon-wrapper {
        width: 70px;
        height: 70px;
        margin: -50px auto 15px;
    }

    .why-icon {
        font-size: 35px;
    }

    .why-card h3 {
        font-size: 1.5rem;
    }

    .why-card .activity-content {
        padding: 25px 20px;
    }
}

/* Animation on scroll */
@media (prefers-reduced-motion: no-preference) {
    .why-card {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 0.6s ease forwards;
    }

    .why-card:nth-child(2) {
        animation-delay: 0.2s;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .why-card,
    .why-icon-wrapper,
    .why-card .card-image {
        transition: none;
        animation: none;
    }
}
