
/* =========================================
   STEP 11: INDUSTRIES WE SERVE
========================================= */

.r3s-industries-section {
    padding: 90px 0;
    background: var(--bg-secondary);
    overflow: hidden;
}

/* HEADING */

.industries-heading {
    max-width: 750px;
    margin: 0 auto 45px;
}

.industries-heading h2 {
    margin: 12px 0;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: clamp(30px, 3.5vw, 43px);
    font-weight: 800;
    line-height: 1.25;
}

.industries-heading h2 span {
    display: block;
    color: var(--r3s-primary);
}

.industries-heading p {
    max-width: 620px;
    margin: 14px auto 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

/* GRID */

.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

/* CARD */

.industry-card {
    position: relative;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 11px;
    transition: transform 0.35s ease,
                border-color 0.35s ease,
                box-shadow 0.35s ease;
}

.industry-card:hover {
    transform: translateY(-7px);
    border-color: rgba(221, 3, 17, 0.45);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* IMAGE */

.industry-image {
    position: relative;
    height: 270px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.industry-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.4),
        transparent 55%
    );
    pointer-events: none;
}

.industry-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.industry-card:hover .industry-image img {
    transform: scale(1.07);
}

.industry-number {
    position: absolute;
    right: 15px;
    bottom: 14px;
    z-index: 1;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 25px;
    font-weight: 800;
}

/* CONTENT */

.industry-content {
    position: relative;
    padding: 28px 22px 24px;
}

.industry-icon {
    width: 48px;
    height: 48px;
    margin-top: -52px;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--r3s-primary);
    border: 4px solid var(--card-bg);
    border-radius: 10px;
    color: #ffffff;
    font-size: 21px;
}

.industry-content h3 {
    margin: 0 0 10px;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
}

.industry-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.8;
}

/* BOTTOM CTA */

.industries-bottom {
    margin-top: 38px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.industries-bottom h3 {
    margin: 0 0 6px;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
}

.industries-bottom p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.industries-bottom .r3s-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* TABLET */

@media (max-width: 991px) {

    .r3s-industries-section {
        padding: 75px 0;
    }

    .industries-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .industry-image {
        height: 190px;
    }
}

/* MOBILE */

@media (max-width: 767px) {

    .r3s-industries-section {
        padding: 65px 0;
    }

    .industries-heading {
        margin-bottom: 30px;
    }

    .industries-heading h2 {
        font-size: 30px;
    }

    .industries-heading p {
        font-size: 13px;
    }

    .industries-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .industry-image {
        height: 135px;
    }

    .industry-content {
        padding: 23px 13px 17px;
    }

    .industry-icon {
        width: 40px;
        height: 40px;
        margin-top: -43px;
        margin-bottom: 13px;
        font-size: 18px;
    }

    .industry-content h3 {
        font-size: 14px;
        line-height: 1.45;
    }

    .industry-content p {
        font-size: 11px;
        line-height: 1.65;
    }

    .industry-number {
        right: 10px;
        bottom: 9px;
        font-size: 19px;
    }

    .industries-bottom {
        margin-top: 25px;
        padding: 20px 16px;
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .industries-bottom h3 {
        font-size: 15px;
    }

    .industries-bottom p {
        font-size: 12px;
        line-height: 1.6;
    }

    .industries-bottom .r3s-btn {
        width: 100%;
        justify-content: center;
    }
}

/* SMALL MOBILE */

@media (max-width: 380px) {

    .industries-grid {
        gap: 10px;
    }

    .industry-image {
        height: 120px;
    }

    .industry-content {
        padding-left: 11px;
        padding-right: 11px;
    }

    .industry-content h3 {
        font-size: 13px;
    }

    .industry-content p {
        font-size: 10px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    .industry-card,
    .industry-image img {
        transition: none;
    }

    .industry-card:hover {
        transform: none;
    }

    .industry-card:hover .industry-image img {
        transform: none;
    }
}
