/* ==========================================================
   CLENA — About Factories / Global Infrastructure Section
   File: assets/css/about/about-factories.css
   ========================================================== */

.about-factories-section {
    position: relative;
    background-color: #ffffff;
    padding: 100px 0;
    z-index: 10;
}

.about-factories-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Header & Typography */
.about-factories-header {
    max-width: 680px;
    margin: 0 auto 56px auto;
    text-align: center;
}

.about-factories-eyebrow {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #947141;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.about-factories-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--primary, #0c3e66);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.about-factories-subheading {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-secondary, #64748b);
    margin: 0;
}

/* Facilities Grid (2x2 Grid) */
.about-factories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* Factory Card Styling */
.factory-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.factory-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(12, 62, 102, 0.08);
    border-color: #cbd5e1;
}

.factory-card-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #f1f5f9;
}

.factory-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.factory-card:hover .factory-card-image-wrap img {
    transform: scale(1.04);
}

.factory-card-body {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
    justify-content: center;
}

.factory-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--primary, #0c3e66);
    letter-spacing: -0.01em;
    margin: 0;
}

.factory-card-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #64748b;
    font-weight: 500;
}

.factory-card-location svg {
    flex-shrink: 0;
    color: #947141;
}

/* Hover indicator badge on factory images */
.factory-lightbox-trigger {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.factory-image-hover-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(12, 62, 102, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 100px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 3;
    pointer-events: none;
}

.factory-card:hover .factory-image-hover-badge {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox Modal */
.factory-lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(12, 24, 38, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    padding: 40px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.factory-lightbox-modal.is-active {
    opacity: 1;
}

.factory-lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 42px;
    color: #ffffff;
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1;
    z-index: 1000000;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.factory-lightbox-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.factory-lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 85vh;
}

.factory-lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.factory-lightbox-modal.is-active .factory-lightbox-content img {
    transform: scale(1);
}

.factory-lightbox-caption {
    margin-top: 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .about-factories-section {
        padding: 80px 0;
    }
    
    .about-factories-heading {
        font-size: 36px;
    }

    .about-factories-grid {
        gap: 24px;
    }

    .factory-card-body {
        padding: 20px 22px;
    }

    .factory-card-title {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .about-factories-grid {
        grid-template-columns: 1fr;
    }

    .about-factories-header {
        margin-bottom: 40px;
    }

    .about-factories-heading {
        font-size: 30px;
    }

    .factory-lightbox-modal {
        padding: 20px;
    }

    .factory-lightbox-close {
        top: 16px;
        right: 20px;
        font-size: 36px;
    }

    .factory-lightbox-caption {
        font-size: 15px;
    }
}

@media (max-width: 600px) {
    .about-factories-section {
        padding: 60px 0;
    }

    .about-factories-heading {
        font-size: 26px;
        margin-bottom: 14px;
    }

    .about-factories-subheading {
        font-size: 14px;
    }
}
