/*
 * Services Page Specific Styles
 * Vizyon Pro — Bento Grid & Service Listing
 */

/* ==========================================================================
   Services Section (Bespoke Grid)
   ========================================================================== */
.services-section {
    background-color: var(--color-white);
    position: relative;
}

/* ==========================================================================
   Apple-Style Bento Grid Architecture
   ========================================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.bento-card {
    position: relative;
    overflow: hidden;
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    min-height: 340px;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.bento-wide {
    grid-column: span 2;
    background: var(--color-bg-ice-blue);
    border: none;
}

.bento-card__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.bento-card__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13, 20, 69, 0.88);
    z-index: 2;
}

.bento-card__icon,
.bento-card__content {
    position: relative;
    z-index: 3;
}

.bento-card__icon {
    width: 64px;
    height: 64px;
    background-color: var(--color-bg-cool-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: var(--space-4);
    transition: transform 0.4s ease, background-color 0.4s ease;
}

.bento-card__icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-primary-red);
    transition: stroke 0.4s ease;
}

.bento-card__content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bento-card__title {
    font-size: 1.5rem;
    color: var(--color-text-dark);
    margin-bottom: var(--space-2);
    font-weight: 700;
    transition: color 0.4s ease;
}

.bento-card__desc {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--space-4);
    flex-grow: 1;
    transition: color 0.4s ease;
}

.bento-card__link {
    font-weight: 600;
    color: var(--color-primary-red);
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    font-size: 1rem;
    gap: 8px;
    transition: color 0.4s ease;
}

.bento-card__link i {
    transition: transform var(--transition-fast);
}

/* Premium Hover Lift */
.bento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.bento-card:hover .bento-card__bg {
    opacity: 1;
    transform: scale(1);
}

.bento-card:hover .bento-card__title,
.bento-card:hover .bento-card__desc,
.bento-card:hover .bento-card__link {
    color: var(--color-white);
}

.bento-card:hover .bento-card__icon {
    background-color: var(--color-primary-red);
    transform: scale(1.05);
}

.bento-card:hover .bento-card__icon svg {
    stroke: var(--color-white);
}

.bento-card:hover .bento-card__link i {
    transform: translateX(6px);
}

.service-card:hover .service-card__link::after {
    transform: translateX(4px);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-wide {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-wide {
        grid-column: span 1;
    }
}
