/* ===== PREMIUM BENTO GRID SERVICES ===== */
.services-bento-section {
    padding: var(--spacing-2xl) var(--spacing-md);
    background: var(--color-gray-100);
    position: relative;
    overflow: hidden;
}

.bento-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

.bento-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-md);
    color: var(--color-dark);
}

.bento-header p {
    font-size: 1.1rem;
    color: var(--color-gray-600);
}

/* THE GRID */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    /* Fixed row height for consistency */
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual Cards */
.bento-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-decoration: none;
    color: var(--color-white);
    background: #000;
    /* Fallback */
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Spans */
.span-2 {
    grid-column: span 2;
}

.span-row-2 {
    grid-row: span 2;
}

/* Background Images & Overlay */
.bento-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    z-index: 0;
}

.bento-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

/* Content */
.bento-content {
    position: relative;
    z-index: 2;
    padding: var(--spacing-lg);
    transform: translateY(0);
    transition: transform var(--transition-base);
}

.bento-icon {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    display: block;
}

.bento-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    line-height: 1.2;
}

.bento-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: var(--spacing-xs);
    opacity: 0;
    /* Hidden by default for cleaner look */
    transform: translateY(10px);
    transition: all var(--transition-base);
    max-height: 0;
}

/* Hover Effects */
.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 255, 255, 0.3);
}

.bento-card:hover .bento-bg {
    transform: scale(1.1);
    /* Zoom effect */
}

.bento-card:hover p {
    opacity: 1;
    transform: translateY(0);
    max-height: 100px;
    /* Reveal text */
}

/* Specific Card Styling (Optional Highlights) */
.bento-card.highlight {
    border: 2px solid var(--color-emergency-red);
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .span-2 {
        grid-column: span 2;
    }

    /* Keep wide ones */
    .span-row-2 {
        grid-row: span 2;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }

    .span-2,
    .span-row-2 {
        grid-column: span 1;
        grid-row: span 1;
    }
}