/* Industries Page - Mosaic (Editorial) Style */

/* Hero */
.industries-hero {
    padding: 160px 0 100px;
    background: var(--bg-primary);
}

.hero-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--brand-blue);
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(60px, 8vw, 120px);
    line-height: 0.9;
    font-weight: 800;
    /* Serif feeling sans */
    letter-spacing: -0.04em;
    color: var(--text-primary);
    margin-bottom: 32px;
}

.hero-lead {
    font-size: 24px;
    font-family: 'Inter', sans-serif;
    /* Explicitly Sans */
    color: var(--text-secondary);
    max-width: 650px;
    line-height: 1.5;
    font-weight: 400;
}

/* Mosaic Section */
.mosaic-section {
    padding: 60px 0 120px;
    background: var(--bg-surface);
}

.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    grid-auto-flow: dense;
}

/* Base Card */
.mosaic-card {
    position: relative;
    display: block;
    height: 480px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    background: #000;
}

/* Mosaic Logic (The Rythym) */
/* Pattern: 
   Row 1: Wide (2) + Normal (1)
   Row 2: Normal (1) + Wide (2)
   Row 3: Normal (1) + Normal (1) + Normal (1)
   Row 4: Wide (2) + Normal (1)
*/

.mosaic-card:nth-child(6n + 1),
.mosaic-card:nth-child(6n + 5) {
    grid-column: span 2;
}

/* Background Image */
.mosaic-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: scale(1.05);
}

.mosaic-card:hover .mosaic-bg {
    transform: scale(1.0);
    /* Zoom out effect */
}

/* Overlay - Editorial Tint */
.mosaic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.6) 100%);
    transition: background 0.4s ease;
}

.mosaic-card:hover .mosaic-overlay {
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
}

/* Content */
.mosaic-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
}

.mosaic-tag {
    font-size: 12px;
    font-family: monospace;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
}

.mosaic-content h3 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-top: auto;
    /* Push to bottom initially */
    margin-bottom: 0;
    margin-left: -2px;
    letter-spacing: -1px;
    line-height: 1;
    transition: transform 0.4s ease;
}

.mosaic-card:hover h3 {
    transform: translateY(-10px);
}

.mosaic-footer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s ease;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.mosaic-card:hover .mosaic-footer {
    max-height: 100px;
    /* Reveal text */
    opacity: 1;
    margin-top: 16px;
}

.mosaic-footer p {
    font-size: 15px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    max-width: 80%;
    margin: 0;
}

.mosaic-arrow {
    font-size: 24px;
    color: #fff;
}


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

    .mosaic-card:nth-child(n) {
        grid-column: auto;
        /* Reset span on tablet */
        grid-column: span 1;
    }

    .mosaic-card:nth-child(3n + 1) {
        grid-column: span 2;
        /* Simple alternating pattern */
    }
}

@media (max-width: 600px) {
    .mosaic-grid {
        display: flex;
        flex-direction: column;
    }

    .mosaic-card {
        height: 300px;
    }
}