/**
 * Services Section 2.0
 *
 * First photo section of the new homepage.
 * Uses Section Header and Image Card components.
 *
 * @package VPK
 */

.services-2 {
    width: 100%;
    background: var(--vpk-color-background);
    padding: var(--vpk-space-md) 0;
}

.services-2__container {
    max-width: var(--vpk-container-width);
    margin: 0 auto;
    padding: 0 var(--vpk-container-padding-desktop);
}

.services-2__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--vpk-space-xl);
    width: 100%;
}

/* Image Card modifications for Services section */
.services-2__card {
    width: 100%;
    max-width: 100%;
}

/* Override Image Card aspect ratio for 16:10 */
.services-2__card .image-card__image-wrapper {
    aspect-ratio: 16 / 10;
    border-radius: var(--vpk-radius-md);
    overflow: hidden;
}

/* Make entire card clickable */
.services-2__card {
    position: relative;
}

.services-2__card a {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    text-decoration: none;
}

/* Hide default link in content */
.services-2__card .image-card__link {
    display: none;
}

/* Content positioning */
.services-2__card .image-card__content {
    position: relative;
    z-index: 2;
    padding: var(--vpk-space-md);
    background: var(--vpk-color-background);
}

/* Hover effect - subtle shadow only */
.services-2__card:hover {
    box-shadow: var(--vpk-shadow-md);
}

.services-2__card:hover .image-card__image {
    transform: scale(1.02);
}

/* Tablet - 2 columns */
@media (max-width: 1024px) {
    .services-2__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--vpk-space-lg);
    }

    .services-2 {
        padding: var(--vpk-space-3xl) 0;
    }

    .services-2__container {
        padding: 0 var(--vpk-container-padding-mobile);
    }
}

/* Mobile - 1 column */
@media (max-width: 768px) {
    .services-2__grid {
        grid-template-columns: 1fr;
        gap: var(--vpk-space-lg);
    }

    .services-2 {
        padding: var(--vpk-space-2xl) 0;
    }
}