﻿*,
*::before,
*::after {
    box-sizing: border-box;
}

.solutions-container {
    width: 100%;
    position: relative;
    /* Replaces the margin-bottom .fx-insidepage__wrapper used to supply. */
    margin-bottom: 50px;
}

/* style-homepage-gwp.css retypes body to Inter; sections below the hero
   predate the design system, so keep them on the site default. */
body {
    font-family: "Poppins", sans-serif;
}

/* HERO — visuals from .gwp-hero*; only page geometry here. */
.sol-hero {
    padding: 62px 0 91px;
}

.sol-hero__layout {
    gap: 157px;
}

.sol-hero__copy {
    flex: 1 1 601px;
    max-width: 601px;
}

.sol-hero__media {
    flex: 0 1 472px;
    min-width: 0;
}

.sol-hero__media img {
    display: block;
    width: 100%;
    height: auto;
}

/* 46px headline; .gwp-hero__title tops out at 36px. Margins in px because
   the .mb-* utilities are a rem scale, so none hits 15px / 35px. */
.sol-hero__title {
    font-size: 46px !important;
    font-weight: 800;
    line-height: 1.26;
    margin: 0 0 15px !important;
}

.sol-hero__body {
    max-width: 601px;
    line-height: 28px;
    margin: 0 0 35px !important;
}

/* SOLUTION CARDS */
.sol-cards {
    padding: 80px 0 68px;
}

.sol-cards__head {
    max-width: 721px;
    margin: 0 auto 60px;
    text-align: center;
}

/* Phones hide this header by design, but d-none dropped the only h2 between the
   h1 and the card h3s (WCAG 1.3.1). Clipped instead, so the outline survives. */
@media (max-width: 767.98px) {
    .sol-cards__head {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

/* Type from .gwp-section-title / .gwp-section-lead — only spacing here. */
.sol-cards__title {
    margin: 0 0 var(--gwp-space-4);
}

.sol-cards__desc {
    margin: 0;
}

.sol-cards__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 46px;
    row-gap: 52px;
}

.sol-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #d2d2d2;
    border-radius: 12px;
    padding-bottom: 21px;
    overflow: hidden;
}

.sol-card__media {
    position: relative;
    background: #d9d9d9;
    margin-bottom: 25px;
    overflow: hidden;
}

/* Ratio on the img, not the wrapper: a wrapper aspect-ratio height is not
   definite, so height:100% falls back to auto and the placeholder shows. */
.sol-card__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 400 / 292;
    object-fit: cover;
}

.sol-card__body {
    padding: 0 20px;
}

.sol-card__title {
    margin: 0 0 var(--gwp-space-3);
}

.sol-card__desc {
    font-size: var(--gwp-fs-base);
    line-height: 1.4;
    font-weight: var(--gwp-fw-regular);
    color: var(--gwp-text-body);
    margin: 0;
}

@media (hover: hover) {
    .sol-card {
        transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    }

    .sol-card__img {
        transition: transform .6s ease;
    }

    .sol-card__title {
        transition: color .35s ease;
    }

    .sol-card:hover {
        transform: translateY(-6px);
        border-color: var(--gwp-primary);
        box-shadow: var(--gwp-shadow-card);
    }

    .sol-card:hover .sol-card__img {
        transform: scale(1.06);
    }

    .sol-card:hover .sol-card__title {
        color: var(--gwp-primary-blue);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sol-card {
        transition: box-shadow .35s ease, border-color .35s ease;
    }

    .sol-card:hover,
    .sol-card:hover .sol-card__img {
        transform: none;
    }
}

.sol-cards__cta {
    padding-top: 60px;
    text-align: center;
}

/* The design system has no light-background outline variant, so compose
   .gwp-btn and override only the colours. */
.sol-btn-outline {
    width: 250px;
    background-color: transparent;
    border-color: var(--gwp-text-body);
    color: var(--gwp-text-body);
}

.sol-btn-outline:hover,
.sol-btn-outline:focus {
    background-color: var(--gwp-text-body);
    color: var(--gwp-text-inverse);
}

/* BENEFIT BAND */
.sol-benefits {
    background: #fefbf2;
    padding: 80px 0 100px;
}

.sol-benefit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 87px;
}

.sol-benefit + .sol-benefit,
.sol-benefit__logos + .sol-benefit {
    margin-top: 140px;
}

.sol-benefit__media {
    position: relative;
    flex: 0 0 520px;
    max-width: 520px;
}

/* Tilted card the photo sits on top of. */
.sol-benefit__media::before {
    content: "";
    position: absolute;
    top: 0;
    left: 3%;
    width: 92%;
    padding-bottom: 63.7%;
    background: #ecf1ff;
    border-radius: 24px;
    transform: rotate(7.56deg);
}

/* Accents are baked into the exported photo — height stays free so they
   never get cropped. */
.sol-benefit__media img {
    position: relative;
    display: block;
    width: 97%;
    height: auto;
    margin-top: 8%;
}

.sol-benefit__copy {
    flex: 1 1 auto;
    min-width: 0;
}

.sol-benefit__title {
    margin: 0 0 var(--gwp-space-4);
}

.sol-benefit__title--indigo {
    color: var(--gwp-heading);
}

.sol-benefit__lead {
    margin: 0 0 var(--gwp-space-7);
}

.sol-benefit__list {
    margin: 0;
    padding-left: var(--gwp-space-6);
    list-style: disc;
}

.sol-benefit__list li {
    font-size: var(--gwp-fs-base);
    line-height: 26px;
    font-weight: var(--gwp-fw-bold);
    color: var(--gwp-text-body);
}

.sol-benefit__logos {
    margin-top: 41px;
}

.sol-benefit__logos img {
    display: block;
    width: 100%;
    height: auto;
}

.sol-benefits__cta {
    padding-top: 60px;
    text-align: center;
}

/* SCALE STATS */
.sol-scale {
    background: linear-gradient(-57.83deg, #585fbe 15.34%, #31356e 91.83%);
    padding: 80px 0;
}

.sol-scale__title {
    text-align: center;
    text-transform: capitalize;
    margin: 0 0 var(--gwp-space-8);
}

.sol-scale__list {
    --bs-gutter-x: 20px;
    --bs-gutter-y: 40px;
    margin-bottom: 0;
}

.sol-scale__item {
    position: relative;
}

/* Each item is in its own .col, so the divider keys off the column, not a sibling. */
.sol-scale__list > .col .sol-scale__item::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--bs-gutter-x) * -0.5);
    border-left: 1px solid rgba(255, 255, 255, .35);
}

@media (min-width: 1200px) {
    .sol-scale__list > .col:nth-child(5n+1) .sol-scale__item::before { display: none; }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .sol-scale__list > .col:nth-child(3n+1) .sol-scale__item::before { display: none; }
}

@media (max-width: 767.98px) {
    .sol-scale__list > .col .sol-scale__item::before { display: none; }
}

.sol-scale__value {
    display: block;
    font-family: var(--gwp-font-title);
    font-size: var(--gwp-fs-3xl);
    font-weight: var(--gwp-fw-extrabold);
    line-height: 1.2;
    color: var(--gwp-primary);
}

.sol-scale__label {
    display: block;
    font-family: var(--gwp-font-title);
    font-size: var(--gwp-fs-base);
    font-weight: var(--gwp-fw-bold);
    line-height: 1.2;
    color: var(--gwp-primary);
    margin-top: 5px;
}

.sol-scale__desc {
    font-size: var(--gwp-fs-sm);
    line-height: 22px;
    font-weight: var(--gwp-fw-regular);
    color: var(--gwp-text-inverse);
    margin: 15px 0 0;
}

/* ENTERPRISE FEATURES — the second card is inverted. */
.sol-enterprise {
    background: linear-gradient(180deg, #f6f7fd 0%, #fff 25%, #fff 72%, #edeffb 100%);
    padding: 80px 0;
}

.sol-enterprise__head {
    max-width: 989px;
    margin: 0 auto 60px;
    text-align: center;
}

.sol-enterprise__title {
    margin: 0 0 var(--gwp-space-4);
}

.sol-enterprise__lead {
    margin: 0;
}

.sol-enterprise__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px;
}

.sol-feature {
    position: relative;
    background: var(--gwp-surface-0);
    border: .6px solid var(--gwp-border);
    border-radius: 10px;
    padding: 50px var(--gwp-space-5) var(--gwp-space-5);
    overflow: hidden;
}

/* Overlay, not a background swap — gradients cannot be transitioned. */
.sol-feature::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, var(--gwp-surface-0) 0%, #fff4dd 100%);
    opacity: 0;
    pointer-events: none;
}

.sol-feature__icon,
.sol-feature__title,
.sol-feature__body {
    position: relative;
    z-index: 1;
}

.sol-feature__icon {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin-bottom: 18px;
}

.sol-feature__title {
    margin: 0 0 var(--gwp-space-2);
}

.sol-feature__body {
    font-size: var(--gwp-fs-base);
    line-height: 1.35;
    font-weight: var(--gwp-fw-regular);
    color: var(--gwp-text-body);
    margin: 0;
}

/* Overshoots the resting transform, then settles so the icon does not
   snap when the animation ends. */
@keyframes sol-icon-pop {
    0% {
        transform: translateY(0) scale(1) rotate(0);
    }

    45% {
        transform: translateY(-7px) scale(1.16) rotate(-7deg);
    }

    75% {
        transform: translateY(-2px) scale(1.04) rotate(4deg);
    }

    100% {
        transform: translateY(-4px) scale(1.08) rotate(0);
    }
}

@media (hover: hover) {
    .sol-feature {
        transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    }

    .sol-feature::before {
        transition: opacity .35s ease;
    }

    .sol-feature__icon {
        transition: transform .35s ease, filter .35s ease;
    }

    .sol-feature__title {
        transition: color .35s ease;
    }

    .sol-feature:hover {
        transform: translateY(-6px);
        border-color: var(--gwp-primary);
        box-shadow: var(--gwp-shadow-card);
    }

    .sol-feature:hover::before {
        opacity: 1;
    }

    .sol-feature:hover .sol-feature__icon {
        transform: translateY(-4px) scale(1.08);
        animation: sol-icon-pop .55s cubic-bezier(.34, 1.56, .64, 1);
        filter: drop-shadow(0 6px 10px rgba(49, 53, 110, .28));
    }

    .sol-feature:hover .sol-feature__title {
        color: var(--gwp-primary-blue);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sol-feature {
        transition: box-shadow .35s ease, border-color .35s ease;
    }

    .sol-feature:hover,
    .sol-feature:hover .sol-feature__icon {
        transform: none;
    }

    .sol-feature:hover .sol-feature__icon {
        animation: none;
    }
}

/* HERO RESPONSIVE — two columns hold to 1200px, then stack and centre. */
@media (max-width: 1399.98px) {
    .sol-hero__layout {
        gap: 80px;
    }

    .sol-hero__title {
        font-size: 40px !important;
    }
}

@media (max-width: 1199.98px) {
    .sol-hero {
        padding: 50px 0 60px;
    }

    .sol-hero__layout {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .sol-hero__copy,
    .sol-hero__media {
        flex: 0 1 auto;
        width: 100%;
    }

    .sol-hero__copy {
        max-width: 660px;
    }

    .sol-hero__media {
        max-width: 420px;
    }

    .sol-hero__title {
        font-size: 36px !important;
    }
}

@media (max-width: 991.98px) {
    .sol-hero__title {
        font-size: 32px !important;
    }
}

@media (max-width: 767.98px) {
    .sol-hero {
        padding: 36px 0 44px;
    }

    .sol-hero__layout {
        gap: 30px;
    }

    .sol-hero__title {
        font-size: 28px !important;
    }

    .sol-hero__body {
        font-size: 16px;
        line-height: 26px;
    }

    .sol-hero__media {
        max-width: 320px;
    }
}

@media (max-width: 575.98px) {
    .sol-hero__title {
        font-size: 24px !important;
    }
}

@media (max-width: 1350px) {

    .sol-benefit {
        gap: 50px;
    }

    .sol-benefit__media {
        flex: 0 1 460px;
    }
}

@media (max-width: 1200px) {
    .sol-cards__grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 30px;
        row-gap: 40px;
    }

    .sol-benefit {
        gap: 40px;
    }

    /* Percentage basis, no shrink — a shrinkable 400px basis collapsed the
       photo to ~190px across the tablet range. */
    .sol-benefit__media {
        flex: 0 0 40%;
    }

    .sol-benefit + .sol-benefit,
    .sol-benefit__logos + .sol-benefit {
        margin-top: 90px;
    }

    .sol-enterprise__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

}

/* 767.98, not 768 — a round 768 put iPad portrait in the phone layout
   while d-md-* utilities gave it the tablet one. */
@media (max-width: 767.98px) {

    .sol-cards {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .sol-cards__grid {
        grid-template-columns: 1fr;
        row-gap: 30px;
    }

    .sol-cards__cta {
        padding-top: 30px;
    }

    .sol-benefits {
        padding: 40px 0 50px;
    }

    .sol-benefit,
    .sol-benefit--media-right {
        flex-direction: column;
        gap: 0;
    }

    .sol-benefit + .sol-benefit,
    .sol-benefit__logos + .sol-benefit {
        margin-top: 50px;
    }

    .sol-benefit__title {
        text-align: center;
    }

    .sol-benefit__lead {
        margin-bottom: 20px;
    }

    .sol-benefit__media-mb {
        margin-bottom: 20px;
    }

    .sol-benefit__media-mb img {
        width: 100%;
        border-radius: 24px;
        object-fit: cover;
    }

    .sol-benefit__list li {
        font-size: 15px;
        line-height: 22px;
    }

    .sol-benefit__logos {
        margin-top: 20px;
    }

    .sol-benefit__logos--mb img {
        padding: 20px;
    }

    .sol-scale,
    .sol-enterprise {
        padding: 40px 0;
    }

    .sol-scale__list {
        --bs-gutter-x: 20px;
        --bs-gutter-y: 20px;
    }

    .sol-enterprise__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sol-enterprise__head {
        margin-bottom: 30px;
    }

}
