/* =========================================================
   SERVICES PAGE
   Desktop layout
   ========================================================= */


/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.services-hero {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    background: var(--fis-navy-950, #041630);
    color: #ffffff;
}

.services-hero__background {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(4, 22, 48, 0.98) 0%,
            rgba(4, 22, 48, 0.93) 30%,
            rgba(4, 22, 48, 0.72) 45%,
            rgba(4, 22, 48, 0.18) 64%,
            rgba(4, 22, 48, 0.02) 100%
        ),
        url("/assets/images/services/hero.jpg")
            center center / cover no-repeat;
}

/* Adds a subtle blue glow to the text side */
.services-hero__background::after {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at left center,
            rgba(31, 84, 151, 0.24),
            transparent 48%
        );

    content: "";
}

.services-hero__inner {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;

    min-height: 520px;

    padding-top: 58px;
    padding-bottom: 58px;
}

.services-hero__content {
    width: 600px;
    max-width: 46%;
}

.services-hero__eyebrow {
    margin: 0 0 14px;

    color: var(--fis-gold-500, #f2ad25);

    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.services-hero__title {
    margin: 0;

    color: #ffffff;

    font-size: clamp(2.5rem, 3.5vw, 4rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.services-hero__title-highlight {
    display: block;
    color: #ffffff;
}

.services-hero__description {
    max-width: 520px;

    margin: 22px 0 0;

    color: rgba(255, 255, 255, 0.88);

    font-size: 0.98rem;
    line-height: 1.62;
}

.services-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: 30px;
}


/* ---------------------------------------------------------
   Intermediate desktop widths
   --------------------------------------------------------- */

@media (max-width: 1200px) {

    .services-hero {
        min-height: 500px;
    }

    .services-hero__inner {
        min-height: 500px;
    }

    .services-hero__content {
        width: 540px;
        max-width: 50%;
    }

    .services-hero__title {
        font-size: clamp(2.25rem, 3.4vw, 3.4rem);
    }

}


/* ---------------------------------------------------------
   Tablet / narrow desktop
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .services-hero__background {
        background:
            linear-gradient(
                90deg,
                rgba(4, 22, 48, 0.96) 0%,
                rgba(4, 22, 48, 0.88) 55%,
                rgba(4, 22, 48, 0.48) 100%
            ),
            url("/assets/images/services/hero.jpg")
                62% center / cover no-repeat;
    }

    .services-hero__content {
        width: 600px;
        max-width: 70%;
    }

}

/* =========================================================
   SERVICE GRID
   ========================================================= */

.services-grid {
    position: relative;
    padding: 46px 0 54px;
    background: #ffffff;
}


/* ---------------------------------------------------------
   Section Heading
   --------------------------------------------------------- */

.services-grid__heading {
    max-width: 900px;
    margin: 0 auto 26px;
    text-align: center;
}

.services-grid__eyebrow {
    margin: 0 0 7px;

    color: var(--fis-red-600, #c9181f);

    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.services-grid__heading h2 {
    margin: 0;

    color: var(--fis-navy-950, #041630);

    font-size: clamp(1.75rem, 2.2vw, 2.35rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
}


/* ---------------------------------------------------------
   Card Grid
   --------------------------------------------------------- */

.services-grid__cards {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px;
}


/* ---------------------------------------------------------
   Service Card
   --------------------------------------------------------- */

.services-card {
    min-width: 0;

    border: 1px solid rgba(4, 22, 48, 0.09);
    border-radius: 12px;

    background: #ffffff;

    box-shadow:
        0 4px 12px rgba(4, 22, 48, 0.05),
        0 1px 3px rgba(4, 22, 48, 0.04);

    overflow: hidden;

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.services-card:hover {
    transform: translateY(-4px);

    border-color: rgba(201, 24, 31, 0.18);

    box-shadow:
        0 12px 28px rgba(4, 22, 48, 0.10),
        0 3px 8px rgba(4, 22, 48, 0.06);
}


/* ---------------------------------------------------------
   Entire Card Link
   --------------------------------------------------------- */

.services-card__link {
    display: flex;
    flex-direction: column;
    align-items: center;

    height: 100%;
    min-height: 330px;

    padding: 18px 12px 16px;

    color: inherit;
    text-align: center;
    text-decoration: none;
}

.services-card__link:focus-visible {
    outline: 3px solid var(--fis-gold-500, #f2ad25);
    outline-offset: -3px;
}


/* ---------------------------------------------------------
   Icons
   --------------------------------------------------------- */

.services-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 78px;
    height: 78px;

    margin: 0 auto 14px;

    flex: 0 0 auto;
}

/*
   The PNG files already contain the navy/red circular
   treatments, so these modifier classes do not need
   backgrounds.
*/

.services-card__icon--navy,
.services-card__icon--red {
    background: transparent;
}

.services-card__icon img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* ---------------------------------------------------------
   Card Typography
   --------------------------------------------------------- */

.services-card h3 {
    margin: 0;

    color: var(--fis-navy-950, #041630);

    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.24;
    letter-spacing: -0.01em;
}

.services-card p {
    margin: 13px 0 18px;

    color: #4f5968;

    font-size: 0.79rem;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   Card CTA
   --------------------------------------------------------- */

.services-card__action {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    margin-top: auto;

    color: var(--fis-red-600, #c9181f);

    font-size: 0.78rem;
    font-weight: 800;

    transition:
        color 180ms ease,
        gap 180ms ease;
}

.services-card__link:hover .services-card__action {
    gap: 8px;
    color: var(--fis-red-700, #a9141a);
}


/* ---------------------------------------------------------
   Intermediate Desktop
   --------------------------------------------------------- */

@media (max-width: 1350px) {

    .services-grid__cards {
        gap: 10px;
    }

    .services-card__link {
        min-height: 325px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .services-card__icon {
        width: 70px;
        height: 70px;
    }

    .services-card h3 {
        font-size: 0.88rem;
    }

    .services-card p {
        font-size: 0.75rem;
    }

}


/* ---------------------------------------------------------
   Narrow Desktop / Tablet
   --------------------------------------------------------- */

@media (max-width: 1100px) {

    .services-grid__cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }

    .services-card__link {
        min-height: 300px;
        padding: 20px 16px 18px;
    }

    .services-card__icon {
        width: 78px;
        height: 78px;
    }

    .services-card h3 {
        font-size: 0.96rem;
    }

    .services-card p {
        font-size: 0.8rem;
    }

}


/* ---------------------------------------------------------
   Small Tablet
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .services-grid {
        padding: 40px 0;
    }

    .services-grid__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* =========================================================
   MOBILE & ON-SITE SERVICES
   ========================================================= */

.services-mobile {
    padding: 0 0 54px;
    background: #ffffff;
}

.services-mobile__panel {
    display: grid;
    grid-template-columns: 38% 62%;
    min-height: 300px;

    overflow: hidden;

    border: 1px solid rgba(4, 22, 48, 0.06);
    border-radius: 14px;

    background:
        linear-gradient(
            110deg,
            #ffffff 0%,
            #f5f8fc 55%,
            #eaf2ff 100%
        );

    box-shadow: 0 6px 20px rgba(4, 22, 48, 0.06);
}


/* ---------------------------------------------------------
   Main Image
   --------------------------------------------------------- */

.services-mobile__visual {
    position: relative;
    min-height: 300px;
    overflow: hidden;
}

.services-mobile__visual img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;
}


/* ---------------------------------------------------------
   Content
   --------------------------------------------------------- */

.services-mobile__content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 32px 38px 28px;
}

.services-mobile__heading {
    margin-bottom: 24px;
}

.services-mobile__eyebrow {
    margin: 0 0 7px;

    color: var(--fis-gold-500, #f2ad25);

    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.services-mobile__heading h2 {
    margin: 0;

    color: var(--fis-navy-950, #041630);

    font-size: clamp(1.7rem, 2vw, 2.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.services-mobile__description {
    max-width: 720px;

    margin: 12px 0 0;

    color: #465365;

    font-size: 0.9rem;
    line-height: 1.55;
}


/* ---------------------------------------------------------
   Six Mobile Services
   --------------------------------------------------------- */

.services-mobile__services {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.services-mobile__service {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;

    min-width: 0;

    padding: 0 12px;

    text-align: center;
}

/* Vertical separators */

.services-mobile__service + .services-mobile__service {
    border-left: 1px solid rgba(242, 173, 37, 0.38);
}


/* ---------------------------------------------------------
   Service Icons
   --------------------------------------------------------- */

.services-mobile__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    margin: 0 auto 9px;
}

.services-mobile__icon img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* ---------------------------------------------------------
   Service Labels
   --------------------------------------------------------- */

.services-mobile__service h3 {
    margin: 0;

    color: var(--fis-navy-950, #041630);

    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
}


/* ---------------------------------------------------------
   Intermediate Desktop
   --------------------------------------------------------- */

@media (max-width: 1250px) {

    .services-mobile__panel {
        grid-template-columns: 36% 64%;
    }

    .services-mobile__content {
        padding-right: 26px;
        padding-left: 26px;
    }

    .services-mobile__service {
        padding-right: 8px;
        padding-left: 8px;
    }

    .services-mobile__icon {
        width: 52px;
        height: 52px;
    }

    .services-mobile__service h3 {
        font-size: 0.72rem;
    }

}


/* ---------------------------------------------------------
   Narrow Desktop / Tablet
   --------------------------------------------------------- */

@media (max-width: 1000px) {

    .services-mobile__panel {
        grid-template-columns: 1fr;
    }

    .services-mobile__visual {
        min-height: 330px;
    }

    .services-mobile__content {
        padding: 32px;
    }

    .services-mobile__services {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 28px;
    }

    .services-mobile__service:nth-child(4) {
        border-left: 0;
    }

}


/* ---------------------------------------------------------
   Small Tablet
   --------------------------------------------------------- */

@media (max-width: 650px) {

    .services-mobile__visual {
        min-height: 250px;
    }

    .services-mobile__content {
        padding: 28px 20px;
    }

    .services-mobile__services {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-mobile__service:nth-child(3),
    .services-mobile__service:nth-child(5) {
        border-left: 0;
    }

}

/* =========================================================
   SOLUTIONS FOR YOUR ORGANIZATION
   ========================================================= */

.services-audiences {
    padding: 0 0 54px;
    background: #ffffff;
}


/* ---------------------------------------------------------
   Section Heading
   --------------------------------------------------------- */

.services-audiences__heading {
    max-width: 900px;
    margin: 0 auto 26px;
    text-align: center;
}

.services-audiences__eyebrow {
    margin: 0 0 7px;

    color: var(--fis-red-600, #c9181f);

    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.services-audiences__heading h2 {
    margin: 0;

    color: var(--fis-navy-950, #041630);

    font-size: clamp(1.75rem, 2.2vw, 2.35rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
}


/* ---------------------------------------------------------
   Audience Grid
   --------------------------------------------------------- */

.services-audiences__grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px;
}


/* ---------------------------------------------------------
   Audience Card
   --------------------------------------------------------- */

.services-audience-card {
    display: flex;
    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    border: 1px solid rgba(4, 22, 48, 0.09);
    border-radius: 11px;

    background: #ffffff;

    color: inherit;
    text-decoration: none;

    box-shadow:
        0 4px 12px rgba(4, 22, 48, 0.05),
        0 1px 3px rgba(4, 22, 48, 0.04);

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.services-audience-card:hover {
    transform: translateY(-4px);

    border-color: rgba(201, 24, 31, 0.18);

    box-shadow:
        0 12px 26px rgba(4, 22, 48, 0.10),
        0 3px 8px rgba(4, 22, 48, 0.05);
}

.services-audience-card:focus-visible {
    outline: 3px solid var(--fis-gold-500, #f2ad25);
    outline-offset: 3px;
}


/* ---------------------------------------------------------
   Audience Image
   --------------------------------------------------------- */

.services-audience-card__image {
    position: relative;

    width: 100%;
    aspect-ratio: 1.42 / 1;

    overflow: hidden;

    background: #eef2f6;
}

.services-audience-card__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 300ms ease;
}

.services-audience-card:hover .services-audience-card__image img {
    transform: scale(1.035);
}


/* ---------------------------------------------------------
   Audience Card Content
   --------------------------------------------------------- */

.services-audience-card__content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 72px;

    padding: 12px 8px;

    text-align: center;
}

.services-audience-card__content h3 {
    margin: 0;

    color: var(--fis-navy-950, #041630);

    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.2;
}


/* ---------------------------------------------------------
   Temporary Audience Icon
   --------------------------------------------------------- */

/*
 * For the first browser test, hide the placeholder dot.
 * Once we see all eight real photographs in place, we can
 * decide whether this section actually needs icons.
 */

.services-audience-card__icon {
    display: none;
}


/* ---------------------------------------------------------
   Supporting Statement / Link
   --------------------------------------------------------- */

.services-audiences__footer {
    margin-top: 20px;

    text-align: center;
}

.services-audiences__footer p {
    margin: 0;

    color: #536071;

    font-size: 0.88rem;
    line-height: 1.5;
}

.services-audiences__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-top: 7px;

    color: var(--fis-red-600, #c9181f);

    font-size: 0.82rem;
    font-weight: 800;

    text-decoration: none;

    transition:
        gap 180ms ease,
        color 180ms ease;
}

.services-audiences__link:hover {
    gap: 9px;
    color: var(--fis-red-700, #a9141a);
}


/* ---------------------------------------------------------
   Intermediate Desktop
   --------------------------------------------------------- */

@media (max-width: 1350px) {

    .services-audiences__grid {
        gap: 10px;
    }

    .services-audience-card__content {
        min-height: 68px;
        padding-right: 6px;
        padding-left: 6px;
    }

    .services-audience-card__content h3 {
        font-size: 0.76rem;
    }

}


/* ---------------------------------------------------------
   Narrow Desktop / Tablet
   --------------------------------------------------------- */

@media (max-width: 1100px) {

    .services-audiences__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }

    .services-audience-card__content h3 {
        font-size: 0.9rem;
    }

}


/* ---------------------------------------------------------
   Small Tablet
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .services-audiences {
        padding-bottom: 42px;
    }

    .services-audiences__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

}

/* =========================================================
   MULTIPLE SAFETY SOLUTIONS + BUSINESS PORTAL
   ========================================================= */

.services-ecosystem {
    position: relative;
    overflow: hidden;

    padding: 52px 0;

    background:
        radial-gradient(
            circle at 18% 45%,
            rgba(19, 77, 139, 0.42) 0%,
            rgba(19, 77, 139, 0) 38%
        ),
        linear-gradient(
            110deg,
            #041a38 0%,
            #062850 50%,
            #07366b 100%
        );
}

.services-ecosystem__grid {
    display: grid;
    grid-template-columns: 42% 58%;
    align-items: stretch;
}


/* =========================================================
   LEFT SIDE — MULTIPLE SAFETY SOLUTIONS
   ========================================================= */

.services-ecosystem__solutions {
    position: relative;

    padding: 4px 42px 4px 0;
}

.services-ecosystem__solutions::after {
    content: "";

    position: absolute;
    top: 4px;
    right: 0;
    bottom: 4px;

    width: 1px;

    background: linear-gradient(
        to bottom,
        transparent,
        rgba(242, 173, 37, 0.65) 18%,
        rgba(242, 173, 37, 0.65) 82%,
        transparent
    );
}

.services-ecosystem__eyebrow {
    margin: 0 0 8px;

    color: var(--fis-gold-500, #f2ad25);

    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.services-ecosystem__solutions h2 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(1.75rem, 2vw, 2.25rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.services-ecosystem__intro {
    margin: 12px 0 0;

    color: rgba(255, 255, 255, 0.82);

    font-size: 0.92rem;
    line-height: 1.55;
}


/* =========================================================
   SOLUTIONS NETWORK
   ========================================================= */

/* =========================================================
   SOLUTIONS NETWORK — CLEAN HUB LAYOUT
   ========================================================= */

.services-ecosystem__network {
    display: grid;
    grid-template-columns: 125px 1px 1fr;
    gap: 26px;
    align-items: center;

    min-height: 245px;

    margin-top: 22px;
}


/* ---------------------------------------------------------
   Shield
   --------------------------------------------------------- */

.services-ecosystem__hub {
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-ecosystem__shield {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 118px;
    height: 140px;
}

.services-ecosystem__shield img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    filter: drop-shadow(
        0 8px 14px rgba(0, 0, 0, 0.28)
    );
}


/* ---------------------------------------------------------
   Gold Divider / Connection
   --------------------------------------------------------- */

.services-ecosystem__connections {
    position: relative;

    display: block;

    width: 1px;
    height: 210px;

    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(242, 173, 37, 0.85) 12%,
        rgba(242, 173, 37, 0.85) 88%,
        transparent 100%
    );
}

/* Hide old individual connector lines */

.services-ecosystem__line {
    display: none;
}


/* ---------------------------------------------------------
   Service List
   --------------------------------------------------------- */

.services-ecosystem__service-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.services-ecosystem__service {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 12px;
    align-items: center;

    min-height: 40px;

    color: #ffffff;
}

.services-ecosystem__service img {
    display: block;

    width: 40px;
    height: 40px;

    object-fit: contain;

    filter: drop-shadow(
        0 3px 5px rgba(0, 0, 0, 0.2)
    );
}

.services-ecosystem__service span {
    color: #ffffff;

    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
}


/* =========================================================
   RIGHT SIDE — BUSINESS PORTAL
   ========================================================= */

.services-ecosystem__portal {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(310px, 1.1fr);
    gap: 20px;
    align-items: center;

    min-width: 0;

    padding: 4px 0 4px 42px;
}

.services-ecosystem__portal-content {
    position: relative;
    z-index: 2;

    min-width: 0;
}

.services-ecosystem__portal-eyebrow {
    margin: 0 0 8px;

    color: var(--fis-gold-500, #f2ad25);

    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.services-ecosystem__portal h2 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(1.7rem, 1.9vw, 2.15rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.services-ecosystem__portal-description {
    max-width: 520px;

    margin: 12px 0 0;

    color: rgba(255, 255, 255, 0.82);

    font-size: 0.88rem;
    line-height: 1.55;
}


/* ---------------------------------------------------------
   Portal Features
   --------------------------------------------------------- */

.services-ecosystem__portal-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;

    margin: 18px 0 0;
    padding: 0;

    list-style: none;
}

.services-ecosystem__portal-features li {
    position: relative;

    padding-left: 19px;

    color: rgba(255, 255, 255, 0.92);

    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.3;
}

.services-ecosystem__portal-features li::before {
    content: "✓";

    position: absolute;
    top: 0;
    left: 0;

    color: #f2ad25;

    font-weight: 900;
}


/* ---------------------------------------------------------
   Portal Buttons
   --------------------------------------------------------- */

.services-ecosystem__portal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 20px;
}

.services-ecosystem__portal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 42px;

    padding: 0 17px;

    border-radius: 5px;

    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;

    transition:
        transform 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease;
}

.services-ecosystem__portal-button:hover {
    transform: translateY(-2px);
}

.services-ecosystem__portal-button--primary {
    border: 1px solid #d51f26;

    background: #d51f26;
    color: #ffffff;

    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.16);
}

.services-ecosystem__portal-button--primary:hover {
    background: #bb171e;
    border-color: #bb171e;
}

.services-ecosystem__portal-button--secondary {
    border: 1px solid rgba(255, 255, 255, 0.68);

    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
}

.services-ecosystem__portal-button--secondary:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}


/* ---------------------------------------------------------
   Portal Device Graphic
   --------------------------------------------------------- */

.services-ecosystem__portal-visual {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
}

.services-ecosystem__portal-visual img {
    display: block;

    width: 100%;
    max-width: 500px;
    height: auto;

    object-fit: contain;

    filter: drop-shadow(
        0 14px 18px rgba(0, 0, 0, 0.28)
    );
}


/* =========================================================
   RESPONSIVE DESKTOP
   ========================================================= */

@media (max-width: 1350px) {

    .services-ecosystem__grid {
        grid-template-columns: 40% 60%;
    }

    .services-ecosystem__solutions {
        padding-right: 30px;
    }

    .services-ecosystem__portal {
        grid-template-columns: minmax(245px, 1fr) minmax(270px, 1fr);

        padding-left: 30px;
    }

    .services-ecosystem__network {
        grid-template-columns: 90px 1fr;
        gap: 42px;
    }

    .services-ecosystem__shield {
        width: 90px;
        height: 108px;
    }

    .services-ecosystem__connections {
        left: 80px;
        width: 105px;
    }

}


/* =========================================================
   NARROW DESKTOP / TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .services-ecosystem__grid {
        grid-template-columns: 1fr;
    }

    .services-ecosystem__solutions {
        padding: 0 0 40px;
    }

    .services-ecosystem__solutions::after {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;

        width: auto;
        height: 1px;

        background: linear-gradient(
            to right,
            transparent,
            rgba(242, 173, 37, 0.65),
            transparent
        );
    }

    .services-ecosystem__portal {
        padding: 40px 0 0;
    }

}


/* =========================================================
   SMALL TABLET
   ========================================================= */

@media (max-width: 750px) {

    .services-ecosystem {
        padding: 42px 0;
    }

    .services-ecosystem__portal {
        grid-template-columns: 1fr;
    }

    .services-ecosystem__portal-visual {
        margin-top: 14px;
    }

    .services-ecosystem__portal-visual img {
        max-width: 540px;
    }

    .services-ecosystem__network {
        grid-template-columns: 82px 1fr;
        gap: 28px;
    }

    .services-ecosystem__connections {
        display: none;
    }

}

/* =========================================================
   WHY ORGANIZATIONS CHOOSE FIRST IN SAFETY
   ========================================================= */

.services-why {
    padding: 58px 0 62px;
    background: #ffffff;
}


/* ---------------------------------------------------------
   Section Heading
   --------------------------------------------------------- */

.services-why__heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    margin-bottom: 38px;
}

.services-why__heading h2 {
    margin: 0;

    color: #061d3f;

    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-align: center;
    text-transform: uppercase;
}

.services-why__heading-line {
    display: block;

    width: 52px;
    height: 2px;

    background: #e9aa20;
}


/* ---------------------------------------------------------
   Six Benefit Columns
   --------------------------------------------------------- */

.services-why__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));

    max-width: 1420px;
    margin: 0 auto;
}

.services-why__item {
    position: relative;

    padding: 0 25px;

    text-align: center;
}

.services-why__item:not(:last-child)::after {
    content: "";

    position: absolute;
    top: 12px;
    right: 0;
    bottom: 6px;

    width: 1px;

    background: #dfe4eb;
}


/* ---------------------------------------------------------
   Icons
   --------------------------------------------------------- */

.services-why__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 72px;

    margin-bottom: 10px;
}

.services-why__icon img {
    display: block;

    width: 68px;
    height: 68px;

    object-fit: contain;
}


/* Built for Organizations is visually wider */
.services-why__item:nth-child(4) .services-why__icon img {
    width: 76px;
    height: 68px;
}


/* ---------------------------------------------------------
   Text
   --------------------------------------------------------- */

.services-why__item h3 {
    margin: 0 0 8px;

    color: #061d3f;

    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.25;
}

.services-why__item p {
    max-width: 185px;

    margin: 0 auto;

    color: #536174;

    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.55;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1250px) {

    .services-why__grid {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 42px;
    }

    .services-why__item:nth-child(3)::after {
        display: none;
    }

    .services-why__item p {
        max-width: 230px;
    }

}


@media (max-width: 750px) {

    .services-why {
        padding: 46px 0;
    }

    .services-why__heading {
        gap: 12px;
        margin-bottom: 32px;
    }

    .services-why__heading-line {
        width: 28px;
    }

    .services-why__heading h2 {
        font-size: 0.9rem;
    }

    .services-why__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .services-why__item {
        padding: 26px 20px;
    }

    .services-why__item:not(:last-child)::after {
        top: auto;
        right: 20%;
        bottom: 0;
        left: 20%;

        width: auto;
        height: 1px;
    }

    .services-why__item:nth-child(3)::after {
        display: block;
    }

}

/* =========================================================
   BUNDLED SAFETY SOLUTIONS
   ========================================================= */

.services-bundles {
    padding: 46px 0 52px;
    background: #f7f9fc;
    border-top: 1px solid #edf0f4;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.services-bundles__heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    margin-bottom: 30px;
}

.services-bundles__heading h2 {
    margin: 0;

    color: #071f43;

    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.015em;
    text-align: center;
    text-transform: uppercase;
}

.services-bundles__heading h2 span {
    display: inline;
}

.services-bundles__heading-line {
    flex: 0 0 52px;

    width: 52px;
    height: 2px;

    background: #e9aa20;
}


/* =========================================================
   GRID
   ========================================================= */

.services-bundles__grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr)
        minmax(0, 1fr)
        190px;
    gap: 14px;

    max-width: 1420px;
    margin: 0 auto;
}


/* =========================================================
   SOLUTION CARDS
   ========================================================= */

.services-bundles__solution {
    display: grid;
    grid-template-columns: 46% 54%;

    min-width: 0;
    min-height: 190px;

    overflow: hidden;

    border: 1px solid #dfe5ec;
    border-radius: 7px;

    background: #ffffff;

    box-shadow:
        0 4px 12px rgba(4, 27, 59, 0.06);
}


/* =========================================================
   PHOTOGRAPHS
   ========================================================= */

.services-bundles__image {
    position: relative;

    min-width: 0;
    min-height: 190px;

    overflow: hidden;
}

.services-bundles__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 300ms ease;
}

.services-bundles__solution:hover .services-bundles__image img {
    transform: scale(1.025);
}


/* Individual crop adjustments */

.services-bundles__solution:nth-child(1)
.services-bundles__image img {
    object-position: center center;
}

.services-bundles__solution:nth-child(2)
.services-bundles__image img {
    object-position: center center;
}

.services-bundles__solution:nth-child(3)
.services-bundles__image img {
    object-position: center center;
}


/* =========================================================
   SOLUTION CONTENT
   ========================================================= */

.services-bundles__content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;

    padding: 20px 18px;
}

.services-bundles__content h3 {
    margin: 0 0 11px;

    color: #071f43;

    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.25;
}


/* =========================================================
   SERVICE LIST
   ========================================================= */

.services-bundles__content ul {
    display: flex;
    flex-direction: column;
    gap: 5px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.services-bundles__content li {
    position: relative;

    padding-left: 17px;

    color: #4e5d70;

    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.35;
}

.services-bundles__content li::before {
    content: "✓";

    position: absolute;
    top: -1px;
    left: 0;

    color: #e9aa20;

    font-size: 0.85rem;
    font-weight: 900;
}


/* =========================================================
   CUSTOM SOLUTION CTA
   ========================================================= */

.services-bundles__cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    min-height: 190px;

    padding: 20px;

    border: 1px solid #dce3eb;
    border-radius: 7px;

    background: #ffffff;

    box-shadow:
        0 4px 12px rgba(4, 27, 59, 0.06);
}


/* ---------------------------------------------------------
   CTA Icon
   --------------------------------------------------------- */

.services-bundles__cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    margin-bottom: 11px;

    color: #082b59;
}

.services-bundles__cta-icon svg {
    display: block;

    width: 48px;
    height: 48px;

    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ---------------------------------------------------------
   CTA Text
   --------------------------------------------------------- */

.services-bundles__cta h3 {
    max-width: 145px;

    margin: 0 0 15px;

    color: #0754a6;

    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
}


/* ---------------------------------------------------------
   CTA Link
   --------------------------------------------------------- */

.services-bundles__cta a {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #d51f26;

    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-decoration: none;
    text-transform: uppercase;

    transition:
        color 180ms ease,
        gap 180ms ease;
}

.services-bundles__cta a span {
    font-size: 1rem;
    line-height: 1;
}

.services-bundles__cta a:hover {
    gap: 11px;
    color: #ad1118;
}


/* =========================================================
   HOVER TREATMENT
   ========================================================= */

.services-bundles__solution,
.services-bundles__cta {
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.services-bundles__solution:hover,
.services-bundles__cta:hover {
    transform: translateY(-2px);

    border-color: #cfd7e1;

    box-shadow:
        0 8px 20px rgba(4, 27, 59, 0.09);
}


/* =========================================================
   RESPONSIVE — NARROW DESKTOP
   ========================================================= */

@media (max-width: 1300px) {

    .services-bundles__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .services-bundles__cta {
        grid-column: 1 / -1;

        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 20px;

        min-height: auto;

        text-align: left;
    }

    .services-bundles__cta-icon {
        flex: 0 0 auto;

        margin: 0;
    }

    .services-bundles__cta h3 {
        max-width: none;

        margin: 0;
    }

}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .services-bundles__grid {
        grid-template-columns: 1fr;
        max-width: 760px;
    }

    .services-bundles__solution {
        grid-template-columns: 42% 58%;
    }

    .services-bundles__image {
        min-height: 210px;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .services-bundles {
        padding: 40px 0 44px;
    }

    .services-bundles__heading {
        gap: 10px;

        margin-bottom: 26px;
    }

    .services-bundles__heading-line {
        flex-basis: 26px;

        width: 26px;
    }

    .services-bundles__heading h2 {
        font-size: 0.85rem;
    }

    .services-bundles__heading h2 span {
        display: block;
    }

    .services-bundles__solution {
        grid-template-columns: 1fr;
    }

    .services-bundles__image {
        min-height: 190px;
        aspect-ratio: 16 / 9;
    }

    .services-bundles__content {
        padding: 20px;
    }

    .services-bundles__cta {
        flex-direction: column;
        align-items: flex-start;

        padding: 24px;
    }

}

/* =========================================================
   SERVICES BOTTOM CTA
   ========================================================= */

.services-bottom-cta {
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 18% 50%,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0) 32%
        ),
        linear-gradient(
            105deg,
            #a90810 0%,
            #c81018 45%,
            #dc171f 100%
        );

    color: #ffffff;
}


/* Subtle depth */

.services-bottom-cta::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.08),
            transparent 30%,
            transparent 75%,
            rgba(0, 0, 0, 0.04)
        );

    pointer-events: none;
}


/* =========================================================
   INNER LAYOUT
   ========================================================= */

.services-bottom-cta__inner {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;

    min-height: 150px;

    padding: 26px 0;
}


/* =========================================================
   ICON
   ========================================================= */

.services-bottom-cta__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 78px;
    height: 78px;

    color: #ffffff;
}

.services-bottom-cta__icon svg {
    display: block;

    width: 76px;
    height: 76px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;

    opacity: 0.96;
}


/* =========================================================
   CONTENT
   ========================================================= */

.services-bottom-cta__content {
    max-width: 680px;
}

.services-bottom-cta__content h2 {
    margin: 0 0 7px;

    color: #ffffff;

    font-size: clamp(1.65rem, 2vw, 2.15rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.services-bottom-cta__content p {
    max-width: 650px;

    margin: 0;

    color: rgba(255, 255, 255, 0.92);

    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.services-bottom-cta__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.services-bottom-cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    min-width: 185px;
    min-height: 48px;

    padding: 0 20px;

    border: 2px solid #ffffff;
    border-radius: 5px;

    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-decoration: none;
    text-transform: uppercase;

    transition:
        transform 180ms ease,
        background-color 180ms ease,
        color 180ms ease,
        box-shadow 180ms ease;
}

.services-bottom-cta__button span {
    font-size: 1.05rem;

    transition: transform 180ms ease;
}

.services-bottom-cta__button:hover span {
    transform: translateX(3px);
}


/* Primary */

.services-bottom-cta__button--primary {
    background: #ffffff;
    color: #b90e16;

    box-shadow:
        0 5px 14px rgba(76, 0, 3, 0.18);
}

.services-bottom-cta__button--primary:hover {
    background: #f5f7fa;
    color: #9d0910;

    transform: translateY(-2px);
}


/* Secondary */

.services-bottom-cta__button--secondary {
    background: transparent;
    color: #ffffff;
}

.services-bottom-cta__button--secondary:hover {
    background: rgba(255, 255, 255, 0.1);

    transform: translateY(-2px);
}


/* =========================================================
   NARROW DESKTOP
   ========================================================= */

@media (max-width: 1100px) {

    .services-bottom-cta__inner {
        grid-template-columns: 72px 1fr;
    }

    .services-bottom-cta__actions {
        grid-column: 2;

        justify-content: flex-start;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .services-bottom-cta__inner {
        grid-template-columns: 1fr;
        gap: 15px;

        padding: 34px 0 38px;

        text-align: center;
    }

    .services-bottom-cta__icon {
        width: 65px;
        height: 65px;

        margin: 0 auto;
    }

    .services-bottom-cta__icon svg {
        width: 64px;
        height: 64px;
    }

    .services-bottom-cta__content {
        margin: 0 auto;
    }

    .services-bottom-cta__actions {
        grid-column: auto;

        justify-content: center;
        flex-direction: column;

        width: 100%;

        margin-top: 8px;
    }

    .services-bottom-cta__button {
        width: 100%;
        max-width: 320px;
    }

}