
/* =========================================
   SENSTECH — CHALLENGES WE HELP SOLVE
========================================= */

.senstech-challenges {
    position: relative;
    overflow: hidden;
    padding: clamp(4.5rem, 8vw, 7rem) 0;
    color: #17251f;
    background:
        radial-gradient(
            ellipse at 8% 12%,
            rgba(20, 184, 166, 0.07),
            transparent 34%
        ),
        linear-gradient(180deg, #f8fbf9 0%, #ffffff 100%);
}

.senstech-challenges__container {
    position: relative;
    z-index: 1;
}

/* =========================================
   SECTION INTRODUCTION
========================================= */

.senstech-challenges__intro {
    max-width: 850px;
    margin: 0 auto clamp(2.5rem, 5vw, 4rem);
    text-align: center;
}

.senstech-challenges__eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    color: #0f6a4a;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    line-height: 1.5;
}

.senstech-challenges__heading {
    margin: 0 0 1.25rem;
    color: #17251f;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.15;
}

.senstech-challenges__heading span {
    color: #0f6a4a;
}

.senstech-challenges__description {
    max-width: 760px;
    margin: 0 auto;
    color: #63736b;
    font-size: clamp(0.98rem, 1.3vw, 1.08rem);
    line-height: 1.85;
}

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

.senstech-challenges__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

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

.senstech-challenge-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: clamp(1.5rem, 2.4vw, 2rem);

    background: #ffffff;
    border: 1px solid #e6eee9;
    border-radius: 1.25rem;
    box-shadow: 0 12px 36px rgba(23, 55, 39, 0.045);

    transition:
        transform 220ms ease,
        box-shadow 220ms ease,
        border-color 220ms ease;
}

.senstech-challenge-card:hover {
    transform: translateY(-5px);
    border-color: rgba(15, 106, 74, 0.24);
    box-shadow: 0 20px 44px rgba(23, 55, 39, 0.09);
}

/* Card Header */

.senstech-challenge-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.senstech-challenge-card__number {
    color: #0f6a4a;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.senstech-challenge-card__category {
    color: #75857c;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1.5;
    text-align: right;
}

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

.senstech-challenge-card__icon {
    display: flex;
    width: 3.25rem;
    height: 3.25rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;

    color: #0f6a4a;
    background: #e9f5ee;
    border-radius: 0.9rem;
    font-size: 1.3rem;
}

.senstech-challenge-card__icon--teal {
    color: #087f78;
    background: #e5f7f5;
}

.senstech-challenge-card__icon--lime {
    color: #537d13;
    background: #f0f7df;
}

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

.senstech-challenge-card__title {
    margin: 0 0 1rem;
    color: #1a2b22;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(1.15rem, 1.6vw, 1.38rem);
    font-weight: 750;
    letter-spacing: -0.025em;
    line-height: 1.4;
}

.senstech-challenge-card__description {
    margin: 0 0 1.75rem;
    color: #65746c;
    font-size: 0.94rem;
    line-height: 1.85;
}

/* =========================================
   DESIRED OUTCOME
   Equal height across all challenge cards
========================================= */

.senstech-challenge-card__outcome {
    display: flex;
    flex: 0 0 112px;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;

    width: 100%;
    min-width: 0;
    height: 112px;
    min-height: 112px;

    margin-top: auto;
    padding: 1rem;

    background: #f3f8f5;
    border-left: 3px solid #0f6a4a;
    border-radius: 0 0.65rem 0.65rem 0;
}

.senstech-challenge-card__outcome span {
    display: block;
    flex-shrink: 0;
    margin-bottom: 0.45rem;

    color: #6a7d72;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1.5;
}

.senstech-challenge-card__outcome p {
    margin: 0;
    color: #174c36;
    font-size: 0.91rem;
    font-weight: 700;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* =========================================
   SECTION CLOSING
========================================= */

.senstech-challenges__closing {
    max-width: 800px;
    margin: clamp(3rem, 6vw, 4.75rem) auto 0;
    padding-top: clamp(2.5rem, 4vw, 3.5rem);
    text-align: center;
}

.senstech-challenges__closing h3 {
    margin: 0 0 1rem;
    color: #17251f;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(1.55rem, 2.8vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.3;
}

.senstech-challenges__closing p {
    max-width: 700px;
    margin: 0 auto 1.75rem;
    color: #63736b;
    font-size: 1rem;
    line-height: 1.85;
}

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

.senstech-challenges__cta {
    display: inline-flex;
    min-height: 3.25rem;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 1.4rem;

    color: #ffffff;
    background: #0f6a4a;
    border: 1px solid #0f6a4a;
    border-radius: 0.75rem;

    font-size: 0.92rem;
    font-weight: 750;
    text-decoration: none;

    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.senstech-challenges__cta:hover {
    color: #ffffff;
    background: #0b543b;
    border-color: #0b543b;
    transform: translateY(-2px);
}

.senstech-challenges__cta i {
    transition: transform 180ms ease;
}

.senstech-challenges__cta:hover i {
    transform: translateX(3px);
}

/* =========================================
   TABLET — 2 COLUMNS
========================================= */

@media (max-width: 991.98px) {
    .senstech-challenges__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .senstech-challenge-card:last-child {
        width: calc(100% - 0.625rem);
        grid-column: 1 / -1;
        justify-self: center;
    }

    .senstech-challenge-card__title {
        font-size: 1.25rem;
    }
}

/* =========================================
   MOBILE — 1 COLUMN
========================================= */

@media (max-width: 575.98px) {
    .senstech-challenges {
        padding: 4rem 0;
    }

    .senstech-challenges__intro {
        margin-bottom: 2rem;
        text-align: left;
    }

    .senstech-challenges__heading {
        font-size: clamp(1.9rem, 8vw, 2.4rem);
    }

    .senstech-challenges__description {
        font-size: 0.96rem;
        line-height: 1.8;
    }

    .senstech-challenges__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .senstech-challenge-card,
    .senstech-challenge-card:last-child {
        width: 100%;
        grid-column: auto;
        padding: 1.4rem;
    }

    .senstech-challenge-card__top {
        margin-bottom: 1.4rem;
    }

    .senstech-challenge-card__title {
        font-size: 1.2rem;
    }

    .senstech-challenge-card__description {
        font-size: 0.93rem;
    }

    /* Keep every outcome block the same height on mobile too. */
    .senstech-challenge-card__outcome {
        flex-basis: 120px;
        height: 120px;
        min-height: 120px;
        padding: 1rem;
    }

    .senstech-challenge-card__outcome span {
        font-size: 0.62rem;
    }

    .senstech-challenge-card__outcome p {
        font-size: 0.9rem;
    }

    .senstech-challenges__closing {
        margin-top: 3rem;
        padding-top: 2.5rem;
        text-align: left;
    }

    .senstech-challenges__closing p {
        font-size: 0.96rem;
    }

    .senstech-challenges__cta {
        width: 100%;
    }
}

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

@media (prefers-reduced-motion: reduce) {
    .senstech-challenge-card,
    .senstech-challenges__cta,
    .senstech-challenges__cta i {
        transition: none;
    }

    .senstech-challenge-card:hover,
    .senstech-challenges__cta:hover {
        transform: none;
    }
}
