/* =========================================================
   INDUSTRIES WE SERVE
   Premium responsive section
   File: industries_we_serve.css
========================================================= */

.industries-we-serve-section {
    --industries-primary: #0d6efd;
    --industries-primary-dark: #0757c9;
    --industries-text: #172033;
    --industries-muted: #687386;
    --industries-border: rgba(20, 35, 60, 0.10);
    --industries-card-bg: #ffffff;
    --industries-soft-bg: #f5f8fc;
    --industries-shadow: 0 18px 55px rgba(24, 45, 78, 0.10);

    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 95px 0 90px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.industries-we-serve-section.has-background-image {
    background: #101a2c;
    color: #fff;
}

.industries-background {
    position: absolute;
    inset: 0;
    z-index: -3;
    background-image: var(--industries-bg-image);
    background-position: var(--industries-bg-position, center center);
    background-size: cover;
    background-repeat: no-repeat;
}

.industries-background-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(
            135deg,
            rgba(7, 20, 43, var(--industries-overlay, .75)),
            rgba(10, 34, 72, calc(var(--industries-overlay, .75) * .92))
        );
}

.industries-container {
    position: relative;
    z-index: 1;
}

/* =========================================================
   HEADER
========================================================= */

.industries-header {
    max-width: 820px;
    margin: 0 auto 52px;
    text-align: center;
}

.industries-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;

    color: var(--industries-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.4;
    text-transform: uppercase;
}

.has-background-image .industries-eyebrow {
    color: #8fc2ff;
}

.industries-eyebrow-line {
    display: inline-block;
    width: 34px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
    opacity: .85;
}

.industries-heading {
    margin: 0;
    color: var(--industries-text);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.1px;
}

.has-background-image .industries-heading {
    color: #fff;
}

.industries-description {
    max-width: 720px;
    margin: 18px auto 0;
    color: var(--industries-muted);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
}

.has-background-image .industries-description {
    color: rgba(255, 255, 255, .82);
}

/* =========================================================
   GRID
========================================================= */

.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

/* =========================================================
   CARD
========================================================= */

.industry-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;

    background: var(--industries-card-bg);
    border: 1px solid var(--industries-border);
    border-radius: 18px;
    box-shadow: var(--industries-shadow);

    transition:
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease;
}

.industry-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4;

    height: 3px;
    background: linear-gradient(
        90deg,
        var(--industries-primary),
        #58a8ff
    );

    transform: scaleX(0);
    transform-origin: left;
    transition: transform .28s ease;
}

.industry-card:hover {
    transform: translateY(-8px);
    border-color: rgba(13, 110, 253, .20);
    box-shadow: 0 24px 65px rgba(20, 45, 82, .16);
}

.industry-card:hover::before {
    transform: scaleX(1);
}

/* =========================================================
   IMAGE
========================================================= */

.industry-image-wrap {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: #eaf1f9;
}

.industry-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .45s ease;
}

.industry-card:hover .industry-image {
    transform: scale(1.055);
}

.industry-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(5, 20, 42, .04) 25%,
        rgba(5, 20, 42, .62) 100%
    );
    pointer-events: none;
}

.industry-icon {
    position: absolute;
    left: 22px;
    bottom: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;
    border-radius: 14px;

    color: #fff;
    background: var(--industries-primary);
    box-shadow: 0 12px 28px rgba(13, 110, 253, .30);

    font-size: 20px;
}

.industry-icon-only {
    position: relative;
    left: auto;
    bottom: auto;

    width: 58px;
    height: 58px;
    margin: 26px 26px 2px;

    flex: 0 0 auto;
}

/* =========================================================
   CONTENT
========================================================= */

.industry-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 25px 25px 24px;
}

.industry-title {
    margin: 0 0 11px;
    color: var(--industries-text);
    font-size: 20px;
    font-weight: 750;
    line-height: 1.35;
}

.industry-description {
    margin: 0;
    color: var(--industries-muted);
    font-size: 14px;
    line-height: 1.75;
}

.industry-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 9px;

    margin-top: auto;
    padding-top: 20px;

    color: var(--industries-primary);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.4;
    text-decoration: none;

    transition:
        color .2s ease,
        gap .2s ease;
}

.industry-link i {
    font-size: 12px;
    transition: transform .2s ease;
}

.industry-link:hover {
    color: var(--industries-primary-dark);
    text-decoration: none;
    gap: 12px;
}

.industry-link:hover i {
    transform: translateX(2px);
}

/* =========================================================
   STATS
========================================================= */

.industries-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;

    margin-top: 52px;
    padding: 25px 0;

    border-top: 1px solid rgba(20, 35, 60, .10);
    border-bottom: 1px solid rgba(20, 35, 60, .10);
}

.has-background-image .industries-stats {
    border-top-color: rgba(255, 255, 255, .16);
    border-bottom-color: rgba(255, 255, 255, .16);
}

.industry-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: 0;
    padding: 6px 24px;
}

.industry-stat + .industry-stat {
    border-left: 1px solid rgba(20, 35, 60, .10);
}

.has-background-image .industry-stat + .industry-stat {
    border-left-color: rgba(255, 255, 255, .16);
}

.industry-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;

    color: var(--industries-primary);
    background: rgba(13, 110, 253, .09);

    font-size: 17px;
}

.has-background-image .industry-stat-icon {
    color: #8fc2ff;
    background: rgba(255, 255, 255, .10);
}

.industry-stat-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.industry-stat-value {
    color: var(--industries-text);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.industry-stat-label {
    margin-top: 3px;
    color: var(--industries-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.has-background-image .industry-stat-value {
    color: #fff;
}

.has-background-image .industry-stat-label {
    color: rgba(255, 255, 255, .70);
}

/* =========================================================
   CTA
========================================================= */

.industries-cta {
    display: flex;
    justify-content: center;
    margin-top: 38px;
}

.industries-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;

    min-height: 52px;
    padding: 13px 25px;

    color: #fff;
    background: linear-gradient(
        135deg,
        var(--industries-primary),
        var(--industries-primary-dark)
    );

    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 10px;
    box-shadow: 0 14px 32px rgba(13, 110, 253, .24);

    font-size: 14px;
    font-weight: 750;
    line-height: 1.3;
    text-decoration: none;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.industries-cta-button:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(13, 110, 253, .32);
}

.industries-cta-button i {
    font-size: 12px;
    transition: transform .2s ease;
}

.industries-cta-button:hover i {
    transform: translateX(3px);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1199.98px) {
    .industries-we-serve-section {
        padding: 80px 0 75px;
    }

    .industries-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .industry-image-wrap {
        height: 175px;
    }

    .industries-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 20px;
    }

    .industry-stat:nth-child(3) {
        border-left: 0;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {
    .industries-we-serve-section {
        padding: 65px 0 60px;
    }

    .industries-header {
        margin-bottom: 36px;
    }

    .industries-eyebrow {
        gap: 8px;
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .industries-eyebrow-line {
        width: 22px;
    }

    .industries-heading {
        font-size: 31px;
        letter-spacing: -.7px;
    }

    .industries-description {
        margin-top: 15px;
        font-size: 14px;
        line-height: 1.7;
    }

    .industries-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .industry-image-wrap {
        height: 205px;
    }

    .industry-content {
        padding: 22px 21px 22px;
    }

    .industry-title {
        font-size: 19px;
    }

    .industries-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 38px;
        padding: 20px 0;
        row-gap: 18px;
    }

    .industry-stat {
        justify-content: flex-start;
        gap: 10px;
        padding: 6px 12px;
    }

    .industry-stat:nth-child(odd) {
        border-left: 0;
    }

    .industry-stat-icon {
        width: 37px;
        height: 37px;
        border-radius: 10px;
        font-size: 14px;
    }

    .industry-stat-value {
        font-size: 18px;
    }

    .industry-stat-label {
        font-size: 11px;
    }

    .industries-cta {
        margin-top: 30px;
    }

    .industries-cta-button {
        width: 100%;
        max-width: 330px;
        min-height: 50px;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {
    .industries-we-serve-section {
        padding: 55px 0 52px;
    }

    .industries-heading {
        font-size: 28px;
    }

    .industry-image-wrap {
        height: 185px;
    }

    .industry-icon {
        left: 18px;
        bottom: 18px;
        width: 48px;
        height: 48px;
        border-radius: 12px;
        font-size: 18px;
    }

    .industry-icon-only {
        width: 52px;
        height: 52px;
        margin: 22px 22px 0;
    }

    .industries-stats {
        gap: 10px 0;
    }

    .industry-stat {
        padding: 5px 8px;
    }
}

/* =========================================================
   ACCESSIBILITY / REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .industry-card,
    .industry-image,
    .industry-card::before,
    .industry-link,
    .industry-link i,
    .industries-cta-button,
    .industries-cta-button i {
        transition: none !important;
    }

    .industry-card:hover {
        transform: none;
    }

    .industry-card:hover .industry-image {
        transform: none;
    }
}
