/* ========================================================
   MODERN 2026 BENTO GRID & ULTRA-SMOOTH ANIMATIONS
   Framer / Dribbble Grade Visual Architecture
   ======================================================== */

:root {
    --bjs-primary: #d4af37; /* Brand Architectural Gold */
    --bjs-primary-hover: #b8860b;
    --bjs-blue: #0f2b5c; /* Deep Royal Navy Blue */
    --bjs-dark: #0a192f;
    --bjs-card-bg: #ffffff;
    --bjs-border: rgba(226, 232, 240, 0.9);
    --bjs-glow: rgba(212, 175, 55, 0.3);
}

/* Section Container */
.bento-section {
    padding: 100px 0 80px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Background Subtle Grid Accent */
.bento-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image: radial-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

.bento-container {
    position: relative;
    z-index: 1;
}

/* Header Typography */
.bento-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 60px auto;
}

.bento-tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.12);
    color: #b8860b;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.bento-header h2 {
    font-size: 44px;
    font-weight: 900;
    color: #091428;
    line-height: 1.2;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.bento-header p {
    font-size: 17px;
    color: #64748b;
    line-height: 1.7;
}

/* ========================================================
   THE BENTO GRID (Responsive CSS Grid with Staggered Heights)
   ======================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 26px;
}

/* Bento Card Base */
.bento-card {
    background: #ffffff;
    border: 1px solid var(--bjs-border);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    cursor: pointer;
    transition: all 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 25px 50px rgba(255, 94, 19, 0.16);
    border-color: rgba(255, 94, 19, 0.5);
}

/* Bento Spans for Asymmetric Modern Layout */
.bento-card.col-span-8 {
    grid-column: span 8;
}

.bento-card.col-span-4 {
    grid-column: span 4;
}

.bento-card.col-span-6 {
    grid-column: span 6;
}

.bento-card.col-span-12 {
    grid-column: span 12;
}

/* Card Visual Media Area */
.bento-media {
    position: relative;
    height: 290px;
    overflow: hidden;
    background: #0f172a;
}

.bento-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.bento-card:hover .bento-media img {
    transform: scale(1.08);
}

/* Floating Glass Badges */
.bento-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 30px;
    z-index: 2;
}

.bento-price {
    position: absolute;
    bottom: 18px;
    right: 18px;
    background: linear-gradient(135deg, #d4af37 0%, #f59e0b 100%);
    color: #0a192f;
    font-size: 15px;
    font-weight: 800;
    padding: 8px 18px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.45);
    z-index: 2;
    transition: transform 0.3s ease;
}

.bento-card:hover .bento-price {
    transform: scale(1.06);
}

/* Card Body Content */
.bento-content {
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-content h3 {
    font-size: 22px;
    font-weight: 800;
    color: #0f2b5c;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.bento-card:hover .bento-content h3 {
    color: #b8860b;
}

.bento-content p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 22px;
}

/* Bottom Action Row */
.bento-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.bento-link {
    font-size: 13px;
    font-weight: 700;
    color: #0f2b5c;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.bento-card:hover .bento-link {
    color: #b8860b;
}

.bento-link i {
    transition: transform 0.3s ease;
}

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

.bento-hint {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

/* ========================================================
   FULL SCREEN DASHBOARD MODAL ENHANCEMENTS
   ======================================================== */
.modal-dashboard-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999999 !important;
    display: none;
    overflow-y: auto !important;
    background: #ffffff !important;
}

.modal-dashboard-fullscreen.is-open {
    display: block !important;
    animation: dashboardFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dashboardFadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Close Sticky Bar in Fullscreen */
.fs-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fs-close-pill {
    background: #091428;
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fs-close-pill:hover {
    background: #0f2b5c;
    color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 43, 92, 0.35);
}

/* ========================================================
   MOBILE SCREEN RESPONSIVENESS (< 992px)
   ======================================================== */
@media (max-width: 991px) {
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .bento-card.col-span-8,
    .bento-card.col-span-4,
    .bento-card.col-span-6,
    .bento-card.col-span-12 {
        grid-column: span 1;
    }
    .bento-header h2 {
        font-size: 30px;
    }
    .bento-media {
        height: 230px;
    }
}
