/* =====================================================================
   PAGE MODULE — en-industries-index
   Extracted verbatim from inline <style> of: industrias/index.html, en/industries/index.html
   Design unchanged; loaded via `pageCss` front-matter.
   ===================================================================== */

/* Mobile-Responsive Grid Classes */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .two-col-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.three-col-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .three-col-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .three-col-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

.industries-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

.icon-60 {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    background: linear-gradient(135deg, var(--secondary-teal), var(--primary-magenta));
}

.icon-50 {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    background: linear-gradient(135deg, var(--secondary-teal), var(--primary-magenta));
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    section:not(.hero-mosaic) {
        padding: 3rem 1.5rem !important;
    }
    
    .hero-mosaic {
        padding: 6rem 1.5rem 0 1.5rem !important;
    }
    
    /* Push hero content below nav - REMOVED, using hero section padding instead */
    
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    h3 {
        font-size: 1.3rem !important;
    }
    
    /* Stack services grid on mobile */
    section > div > div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
}

/* Hero 16: Industry Mosaic */
.hero-mosaic {
    background: white;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 0 2rem;
    position: relative;
}

.mosaic-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 4rem;
    align-items: center;
}

.mosaic-text {
    background: linear-gradient(135deg, #FAF9F6 0%, #F5F3F0 100%);
    padding: 3rem;
    border-radius: 20px;
}

.mosaic-text h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.mosaic-subtitle {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: var(--primary-navy);
    opacity: 0.85;
    max-width: 50ch;
}

.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(6, 60px);
    gap: 1rem;
}

.mosaic-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mosaic-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(166, 25, 99, 0.9), rgba(23, 167, 175, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mosaic-overlay span {
    color: white;
    font-family: 'Mirza', serif;
    font-weight: 500;
    font-size: 1.5rem;
    text-align: center;
    padding: 1rem;
}

.mosaic-item:hover {
    transform: translateY(-4px);
    z-index: 2;
}

.mosaic-item:hover img {
    transform: scale(1.05);
}

.mosaic-item:hover .mosaic-overlay {
    opacity: 1;
}

.mosaic-large {
    grid-column: 1 / 5;
    grid-row: 1 / 4;
}

.mosaic-medium:nth-of-type(2) {
    grid-column: 5 / 9;
    grid-row: 1 / 4;
}

.mosaic-small:nth-of-type(3) {
    grid-column: 1 / 5;
    grid-row: 4 / 7;
}

.mosaic-medium:nth-of-type(4) {
    grid-column: 5 / 9;
    grid-row: 4 / 7;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mosaic-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.mosaic-item:nth-child(1) { animation-delay: 0.1s; }
.mosaic-item:nth-child(2) { animation-delay: 0.2s; }
.mosaic-item:nth-child(3) { animation-delay: 0.3s; }
.mosaic-item:nth-child(4) { animation-delay: 0.4s; }

@media (max-width: 968px) {
    .hero-mosaic {
        padding: 6rem 1.5rem 0 1.5rem !important;
        background: linear-gradient(135deg, #FAF9F6 0%, #F5F3F0 100%) !important;
    }
    
    .mosaic-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mosaic-text {
        background: transparent;
        padding: 0;
        border-radius: 0;
        margin-bottom: 2rem;
    }
    
    .mosaic-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(8, 50px);
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    /* Force rounded corners on mobile */
    .mosaic-item {
        border-radius: 12px !important;
        overflow: hidden !important;
    }
    
    /* 3 images on mobile - cleaner layout */
    .mosaic-large {
        grid-column: 1 / 7;
        grid-row: 1 / 5;
    }
    
    .mosaic-medium:nth-of-type(2) {
        grid-column: 1 / 4;
        grid-row: 5 / 9;
    }
    
    .mosaic-small:nth-of-type(3) {
        grid-column: 4 / 7;
        grid-row: 5 / 9;
    }
    
    .mosaic-medium:nth-of-type(4) {
        display: none;
    }
    
    .mosaic-subtitle {
        max-width: none;
    }
}



/* Services mobile stacking */
@media (max-width: 768px) {
    section > div > div[style*="grid-template-columns: 2fr 1fr"],
    section > div > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    /* CRITICAL FIX: Force location card images to cover full card on mobile */
    .three-col-grid > div[style*="position: relative"] {
        height: 350px !important;
        overflow: hidden !important;
        border-radius: 16px !important;
    }
    
    .three-col-grid > div[style*="position: relative"] > img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    /* Reduce excessive white space after hero on mobile */
    #industries-grid {
        padding-top: 3rem !important;
    }
}

/* Mobile - Industries Hero */
@media (max-width: 768px) {
    section[style*="grid-template-columns: 45% 55%"] > div {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    section[style*="min-height: 85vh"] {
        min-height: auto !important;
        padding: 6rem 1.5rem 3rem !important;
    }
}

/* Hero Image Hover Effects */
div[style*="cursor: pointer"]:hover img {
    transform: scale(1.05);
}

div[style*="cursor: pointer"]:hover div[style*="opacity: 0"] {
    opacity: 1 !important;
}
