/* Homepage V2 sections follow the page's <html dir> (rtl for fa, ltr for en) */

/* Hero */
.lfx-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-start;
    color: var(--white);
    overflow: hidden;
}

.lfx-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.lfx-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--dark);
    background-image: url('../images/IMG_1244-web.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: saturate(0.85) contrast(1.05) brightness(0.95);
}

.lfx-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(24, 24, 24, .35) 0%, rgba(24, 24, 24, .55) 70%, rgba(24, 24, 24, 0) 100%);
}

.lfx-hero-content {
    position: relative;
    z-index: 1;
    padding-top: clamp(80px, 20vh, 160px);
}

@media (min-width: 1024px) {
    .lfx-hero-content {
        padding-top: clamp(20px, 4vh, 60px);
    }
}

.lfx-eyebrow--light {
    color: var(--primary);
}

.lfx-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.05;
    max-width: 900px;
    margin-bottom: 1.75rem;
}

.lfx-hero-chips {
    display: flex;
    gap: .75rem;
    margin-bottom: 2.5rem;
}

.lfx-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Products */
.lfx-products {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 640px;
}

.lfx-product-panel {
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    min-height: 420px;
    color: var(--dark);
    background-color: var(--white);
}

.lfx-product-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.lfx-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.lfx-product-media--icon img {
    object-fit: contain;
    padding: 3rem;
}

.lfx-product-panel:hover .lfx-product-media img {
    transform: scale(1.08);
}

.lfx-product-info {
    position: relative;
    z-index: 1;
    padding: 3rem;
}

.lfx-product-info h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: .5rem 0 .75rem;
}

.lfx-product-info p {
    max-width: 420px;
    opacity: .85;
    margin-bottom: 1.25rem;
}

.lfx-product-link {
    font-weight: 600;
    color: var(--primary);
}

/* Industries */
.lfx-industries-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.lfx-industry-card {
    padding: 2.5rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, .06);
    transition: transform var(--transition), box-shadow var(--transition);
}

.lfx-industry-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
}

.lfx-industry-card i {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.lfx-industry-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
    margin: 0 auto 1rem;
}

.lfx-industry-card h3 {
    font-size: 1rem;
    font-weight: 600;
}

.lfx-industry-card p {
    font-size: .85rem;
    color: var(--gray);
    line-height: 1.6;
    margin-top: .5rem;
}

/* About */
.lfx-about-body {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.lfx-about-body p {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.8;
}

/* Why LFIX */
.lfx-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.lfx-why-item {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--light);
    border-radius: var(--radius);
}

.lfx-why-item i {
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: .2rem;
}

.lfx-why-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: .2rem;
}

.lfx-why-title {
    display: block;
    font-weight: 600;
    margin-bottom: .35rem;
}

.lfx-why-desc {
    font-size: .85rem;
    color: var(--gray);
    line-height: 1.6;
}

/* Factory Experience */
.lfx-factory {
    position: relative;
    height: 70vh;
    height: 70dvh;
    min-height: 420px;
    overflow: hidden;
}

.lfx-factory-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% center;
    background-color: var(--dark);
    background-image: url('../images/IMG_4113-web.JPG');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: saturate(0.85) contrast(1.05) brightness(0.95);
}

/* Export */
.lfx-export-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.lfx-export-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lfx-export-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .9rem;
    margin: 2rem 0;
}

.lfx-export-list li {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.lfx-export-list i {
    color: var(--primary);
    width: 1.25rem;
}

.lfx-export-list-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Knowledge Center */
.lfx-knowledge {
    padding-bottom: calc(var(--section-padding) + 2rem);
}

.lfx-knowledge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.lfx-knowledge-card {
    display: block;
    border: 1px solid rgba(0, 0, 0, .06);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.lfx-knowledge-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
}

.lfx-knowledge-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 0;
}

.lfx-knowledge-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1.25rem 1.25rem .5rem;
}

.lfx-knowledge-card p {
    color: var(--gray);
    font-size: .9rem;
    margin: 0 1.25rem 1.25rem;
}

.lfx-knowledge-empty {
    color: var(--gray);
    text-align: center;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.lfx-knowledge-more {
    text-align: center;
}

@media (max-width: 900px) {
    .lfx-products {
        grid-template-columns: 1fr;
    }

    .lfx-product-panel {
        aspect-ratio: 4 / 5;
        min-height: auto;
        flex-direction: column;
        align-items: stretch;
    }

    .lfx-product-media {
        position: relative;
        height: 40%;
    }

    .lfx-product-media--icon img {
        padding: 1rem;
    }

    .lfx-product-info {
        position: static;
        padding: 2rem;
    }

    .lfx-industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lfx-why-grid {
        grid-template-columns: 1fr;
    }

    .lfx-export-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .lfx-export-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: right;
    }

    .lfx-export-list li {
        justify-content: flex-start;
    }

    .lfx-knowledge-grid {
        grid-template-columns: 1fr;
    }

    .lfx-factory-video {
        background-position: 80% center;
    }

    .lfx-hero-video {
        background-image: url('../images/IMG_1244-mobile-web-v2.jpg');
        background-position: 80% center;
    }
}

@media (max-width: 560px) {
    .lfx-industries-grid {
        grid-template-columns: 1fr;
    }
}
