/* ==========================================================================
   ROYAL ELITE LIMO - SERVICES BENTO GRID STYLESHEET
   Apple-style asymmetrical Bento Grid, full-bleed images, hover slide-up details
   ========================================================================== */

/* --- Services Sub-Navigation (Apple style) --- */
.services-sub-nav-wrapper {
    position: sticky;
    top: 90px;
    width: 100%;
    z-index: 990;
    margin-top: -30px;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
}

.services-sub-nav {
    display: flex;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 40px;
    background: rgba(10, 10, 11, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    max-width: 95%;
    overflow-x: auto;
    scrollbar-width: none;
}

.services-sub-nav::-webkit-scrollbar {
    display: none;
}

.sub-nav-item {
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    padding: 10px 18px;
    border-radius: 20px;
    white-space: nowrap;
    transition: all 0.3s var(--ease-ios);
}

.sub-nav-item:hover, .sub-nav-item.active {
    color: var(--text-primary);
    background: var(--glass-bg-hover);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

/* --- Bento Grid Framework --- */
.services-bento-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    margin-bottom: 100px;
}

/* Bento Tile Base Style */
.bento-tile {
    position: relative;
    height: 480px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 36px;
    cursor: pointer;
    box-shadow: var(--glass-shadow);
    scroll-margin-top: 160px;
    transition: border-color 0.5s var(--ease-ios), box-shadow 0.5s var(--ease-ios);
}

/* Bento Column Spanning Schedules */
.tile-airport { grid-column: span 3; }
.tile-corporate { grid-column: span 3; }
.tile-weddings { grid-column: span 4; }
.tile-proms { grid-column: span 2; }
.tile-private-jet { grid-column: span 4; }
.tile-vip-chauffeur { grid-column: span 2; }
.tile-hourly { grid-column: span 2; }
.tile-nightlife { grid-column: span 4; }
.tile-events { grid-column: span 3; }
.tile-long-distance { grid-column: span 3; }

/* Background Images Full Bleed */
.bento-tile-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    transition: transform 0.8s var(--ease-ios);
}

.bento-tile:hover .bento-tile-bg {
    transform: scale(1.08);
}

/* Dark Contrast Gradient Overlay */
.bento-tile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(
        to bottom, 
        rgba(2, 2, 2, 0.05) 0%, 
        rgba(2, 2, 2, 0.4) 40%, 
        rgba(2, 2, 2, 0.95) 100%
    );
    transition: background 0.5s var(--ease-ios);
}

.bento-tile:hover .bento-tile-overlay {
    background: linear-gradient(
        to bottom, 
        rgba(2, 2, 2, 0.1) 0%, 
        rgba(2, 2, 2, 0.55) 30%, 
        rgba(2, 2, 2, 0.98) 100%
    );
}

/* Content wrapper */
.bento-tile-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-end;
}

/* Header Text elements */
.bento-tile-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bento-gold-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold-accent);
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 4px 10px;
    border-radius: 30px;
    margin-bottom: 12px;
}

.bento-tile-title {
    font-size: 2rem;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 4px;
}

/* Expandable Reveal Drawer */
.bento-tile-drawer {
    opacity: 0;
    transform: translateY(30px);
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    transition: all 0.6s var(--ease-ios);
}

.bento-tile:hover .bento-tile-drawer {
    opacity: 1;
    transform: translateY(0);
    max-height: 380px;
    margin-top: 16px;
}

.bento-tile-desc {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.bento-specs-list {
    list-style: none;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bento-specs-list li {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.bento-specs-list li i, .bento-specs-list li svg {
    width: 14px;
    height: 14px;
    color: var(--gold-accent);
}

/* Sweeping Glare Reflection Effect */
.bento-tile-shine {
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.07) 50%, 
        transparent 100%
    );
    transform: skewX(-20deg);
    z-index: 4;
    pointer-events: none;
}

.bento-tile:hover .bento-tile-shine {
    left: 150%;
    transition: all 1.3s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Glowing Border on Hover */
.bento-tile:hover {
    border-color: var(--gold-accent);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.16);
}

/* --- Intermediate Breaker CTAs --- */
.bento-breaker-cta {
    grid-column: span 6;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    border-radius: var(--radius-lg);
    background: rgba(10, 10, 11, 0.85);
    border: 1px solid var(--glass-border);
    margin: 16px 0;
}

.breaker-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.breaker-text p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.breaker-actions {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

/* --- RESPONSIVE BENTO GRID MEDIA QUERIES --- */

/* Tablets */
@media (max-width: 1024px) {
    .services-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .bento-tile {
        grid-column: span 1 !important; /* Spans 1 of 2 columns */
        height: 440px;
        padding: 24px;
    }
    
    .bento-breaker-cta {
        grid-column: span 2 !important;
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .breaker-actions {
        width: 100%;
        justify-content: center;
    }
    
    .services-sub-nav-wrapper {
        top: 70px;
        margin-bottom: 30px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .services-bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-tile {
        grid-column: span 1 !important;
        height: 420px;
    }
    
    .bento-breaker-cta {
        grid-column: span 1 !important;
        padding: 24px 16px;
    }
    
    .breaker-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .breaker-actions .btn {
        width: 100%;
    }
}
