/**
 * Bento Grid System
 * A modern, responsive grid layout for premium card designs
 * Reusable for properties, projects, testimonials, team members, etc.
 */

/* ===== BASE GRID ===== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    width: 100%;
}

/* ===== CARD BASE ===== */
.bento-card {
    position: relative;
    background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201,162,39,0.25);
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.25),
        0 0 0 1px rgba(201,162,39,0.1);
}

/* ===== CARD SIZES (Desktop) ===== */
/* Small: 4 columns */
.bento-sm { grid-column: span 4; }

/* Medium: 6 columns */
.bento-md { grid-column: span 6; }

/* Large: 8 columns */
.bento-lg { grid-column: span 8; }

/* Full: 12 columns */
.bento-full { grid-column: span 12; }

/* Row spans */
.bento-row-2 { grid-row: span 2; }
.bento-row-3 { grid-row: span 3; }

/* ===== CARD IMAGE ===== */
.bento-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    flex-shrink: 0;
}

.bento-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bento-card:hover .bento-image img {
    transform: scale(1.03);
}

.bento-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 40%,
        rgba(10,22,40,0.4) 70%,
        rgba(10,22,40,0.85) 100%
    );
    pointer-events: none;
}

/* Image placeholder */
.bento-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a2a4a 0%, #0d1f3c 100%);
    color: rgba(201,162,39,0.25);
    font-size: 3rem;
}

/* ===== CARD BADGE ===== */
.bento-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.bento-badge-gold {
    background: linear-gradient(135deg, rgba(201,162,39,0.95), rgba(230,196,77,0.95));
    color: #0a1628;
}

.bento-badge-green {
    background: rgba(34,197,94,0.15);
    border: 1px solid rgba(34,197,94,0.35);
    color: #22c55e;
}

.bento-badge-orange {
    background: rgba(249,115,22,0.15);
    border: 1px solid rgba(249,115,22,0.35);
    color: #f97316;
}

.bento-badge-red {
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.35);
    color: #ef4444;
}

.bento-badge-blue {
    background: rgba(59,130,246,0.15);
    border: 1px solid rgba(59,130,246,0.35);
    color: #3b82f6;
}

.bento-badge-purple {
    background: rgba(139,92,246,0.15);
    border: 1px solid rgba(139,92,246,0.35);
    color: #8b5cf6;
}

/* Secondary badge (top right) */
.bento-badge-secondary {
    left: auto;
    right: 16px;
}

/* ===== CARD CONTENT ===== */
.bento-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bento-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bento-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* ===== CARD META ===== */
.bento-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.bento-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.bento-meta-item i {
    color: #c9a227;
    font-size: 0.75rem;
}

/* ===== CARD FOOTER / ACTIONS ===== */
.bento-footer {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.bento-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    flex: 1;
}

.bento-btn-gold {
    background: linear-gradient(135deg, #c9a227, #e6c44d);
    color: #0a1628;
}

.bento-btn-gold:hover {
    box-shadow: 0 8px 25px rgba(201,162,39,0.35);
    color: #0a1628;
    text-decoration: none;
}

.bento-btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
}

.bento-btn-outline:hover {
    border-color: #c9a227;
    color: #c9a227;
    text-decoration: none;
}

/* ===== OVERLAY INFO (on image) ===== */
.bento-overlay-info {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 2;
}

.bento-overlay-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.bento-overlay-subtitle {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.75);
}

.bento-overlay-subtitle i {
    color: #c9a227;
    margin-right: 5px;
}

/* ===== ICON CARD VARIANT ===== */
.bento-icon-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.bento-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(201,162,39,0.12), rgba(201,162,39,0.04));
    border: 1px solid rgba(201,162,39,0.2);
    border-radius: 20px;
    font-size: 1.6rem;
    color: #c9a227;
    transition: all 0.3s ease;
}

.bento-card:hover .bento-icon {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(201,162,39,0.2);
}

.bento-icon-card .bento-title {
    font-size: 1.1rem;
    text-align: center;
}

.bento-icon-card .bento-desc {
    text-align: center;
    font-size: 0.85rem;
}

/* ===== STAT CARD VARIANT ===== */
.bento-stat-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 180px;
}

.bento-stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #c9a227, #e6c44d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.bento-stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== TESTIMONIAL CARD VARIANT ===== */
.bento-testimonial {
    padding: 2rem;
}

.bento-quote {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.bento-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: rgba(201,162,39,0.3);
    font-family: Georgia, serif;
    line-height: 1;
}

.bento-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bento-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(201,162,39,0.3);
}

.bento-author-info {
    flex: 1;
}

.bento-author-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.bento-author-role {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

/* ===== TEAM CARD VARIANT ===== */
.bento-team-card .bento-image {
    aspect-ratio: 1/1;
}

.bento-team-card .bento-content {
    text-align: center;
}

.bento-team-card .bento-title {
    font-size: 1.1rem;
}

.bento-team-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 1rem;
}

.bento-team-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.bento-team-social a:hover {
    background: #c9a227;
    border-color: #c9a227;
    color: #0a1628;
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.bento-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Only apply reveal animation when JS is ready */
.bento-reveal-ready .bento-reveal {
    opacity: 0;
    transform: translateY(30px);
}

.bento-reveal-ready .bento-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays */
.bento-reveal-1 { transition-delay: 0.05s; }
.bento-reveal-2 { transition-delay: 0.1s; }
.bento-reveal-3 { transition-delay: 0.15s; }
.bento-reveal-4 { transition-delay: 0.2s; }
.bento-reveal-5 { transition-delay: 0.25s; }
.bento-reveal-6 { transition-delay: 0.3s; }
.bento-reveal-7 { transition-delay: 0.35s; }
.bento-reveal-8 { transition-delay: 0.4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .bento-sm { grid-column: span 6; }
    .bento-md { grid-column: span 6; }
    .bento-lg { grid-column: span 12; }
}

@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 1.25rem;
    }
    .bento-sm { grid-column: span 3; }
    .bento-md { grid-column: span 6; }
    .bento-lg { grid-column: span 6; }
    .bento-full { grid-column: span 6; }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .bento-sm,
    .bento-md,
    .bento-lg,
    .bento-full {
        grid-column: span 1;
    }
    .bento-row-2,
    .bento-row-3 {
        grid-row: span 1;
    }
    .bento-card {
        border-radius: 20px;
    }
    .bento-content {
        padding: 1.25rem;
    }
    .bento-stat-number {
        font-size: 2.5rem;
    }
}

/* ===== DARK/LIGHT VARIANTS ===== */
.bento-light .bento-card {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
}

.bento-light .bento-card:hover {
    border-color: rgba(201,162,39,0.4);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

.bento-light .bento-title {
    color: #1a1a2e;
}

.bento-light .bento-desc {
    color: rgba(0,0,0,0.6);
}

.bento-light .bento-meta-item {
    color: rgba(0,0,0,0.5);
}

/* ===== PROCESS CARD VARIANT ===== */
.bento-process-card {
    position: relative;
    padding: 2rem;
    padding-left: 5rem;
    min-height: 180px;
}

.bento-process-number {
    position: absolute;
    top: 2rem;
    left: 1.5rem;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(201,162,39,0.2), rgba(201,162,39,0.05));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.bento-process-card .bento-content {
    padding: 0;
}

.bento-process-card .bento-title {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.bento-process-card .bento-desc {
    -webkit-line-clamp: 4;
}

/* ===== UTILITY CLASSES ===== */
.mt-4 { margin-top: 2rem; }
.text-center { text-align: center; }
