/* Industries Page Specific Styles */

.ind-hero {
    height: 300px;
    background: url('Assets/Hero-Warehouse-Logistics.webp') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ind-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.ind-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
}

.ind-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
}

.ind-hero-content h1 .industry-heading-letter {
    display: inline-block;
    white-space: pre;
}

.ind-content-section {
    padding: 60px 0;
}

.ind-item {
    margin-bottom: 60px;
}

.ind-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: flex-start;
}

.ind-text h2 {
    font-size: 1.8rem;
    color: #1a3c5a;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.ind-text p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.ind-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ind-full-text {
    margin-top: 25px;
    line-height: 1.8;
    color: #555;
}

.ind-content-section.has-scroll-reveal .industry-reveal {
    opacity: 0;
    transform: translate3d(var(--reveal-x, 0), var(--reveal-y, 0), 0);
    transition: opacity 950ms ease, transform 1100ms cubic-bezier(0.2, 0.7, 0.2, 1);
    will-change: opacity, transform;
}

.ind-content-section.has-scroll-reveal .industry-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.ind-content-section.has-scroll-reveal .ind-full-text {
    --reveal-y: 24px;
}

@media (max-width: 991px) {
    .ind-content-section.has-scroll-reveal .ind-grid > .ind-text {
        --reveal-x: -48px;
    }

    .ind-content-section.has-scroll-reveal .ind-grid > .ind-image {
        --reveal-x: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ind-content-section.has-scroll-reveal .industry-reveal {
        opacity: 1;
        transform: none;
        transition: none;
        will-change: auto;
    }
}

/* Alternate sections */
.ind-item:nth-child(even) .ind-grid {
    grid-template-columns: 0.8fr 1.2fr;
}

.ind-item:nth-child(even) .ind-text {
    order: 2;
}

.ind-item:nth-child(even) .ind-image {
    order: 1;
}

@media (max-width: 991px) {

    .ind-grid,
    .ind-item:nth-child(even) .ind-grid {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    /* Reset desktop ordering for mobile stacking */
    .ind-item:nth-child(even) .ind-text,
    .ind-item:nth-child(even) .ind-image,
    .ind-text,
    .ind-image {
        order: unset;
    }

    /* Ensure Text appears above Image on mobile */
    .ind-text {
        order: 1;
    }

    .ind-image {
        order: 2;
    }

    .ind-text h2 {
        font-size: 1.5rem;
    }

    .ind-item {
        margin-bottom: 40px;
    }
}
