/* ── Main layout ── */
.why-ch-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 350px;
    grid-template-rows: auto auto auto;
    gap: 12px;
    margin-bottom: 12px;
}

/* ── Section Header (row 1, cols 1-4) ── */
.why-ch-section-header {
    grid-column: 1 / 5;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 8px 0 4px;
}

.why-ch-section-header h2 {
    font-family: var(--font-stack-heading);
    font-size: var(--custom-title-3-default);
    color: var(--darktheme-heading-white);
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.why-ch-header-rule {
    flex: 1;
    height: 1px;
    background: var(--darktheme-bg-gray-dark);
}

/* Stats cards grid (4 col × 2 row, rows 2-3) */
.why-ch-stats-grid {
    grid-column: 1 / 5;
    grid-row: 2 / 4;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 12px;
}

/* ── Stat Card ── */
.why-ch-stat-card {
    background: var(--darktheme-black);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 12px;
    padding: 30px 30px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.why-ch-stat-card .why-ch-icon {
    width: 28px;
    height: 28px;
    opacity: 0.55;
}

.why-ch-stat-card .why-ch-stat-value {
    color: var(--darktheme-bg-lightest-gray);
}

.why-ch-stat-card .why-ch-stat-value h3 {
    margin: 0;
}

.why-ch-stat-card .why-ch-stat-value sup {
    font-size: 0.75rem;
    vertical-align: super;
}

.why-ch-stat-card .why-ch-stat-desc {
    color: var(--darktheme-bg-lightest-gray);
    font-size: 16px;
}

/* ── CTA Card ── */
.why-ch-cta-card {
    grid-column: 5 / 6;
    grid-row: 1 / 4;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.why-ch-cta-card::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: var(--darktheme-bg-gray-dark);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 80px), calc(100% - 85px) calc(100% - 85px), calc(100% - 90px) 100%, 0 100%);
    pointer-events: none;
}

.why-ch-cta-card>a {
    position: relative;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    padding: 32px 28px;
}

.why-ch-cta-card .why-ch-cta-title {
    margin-bottom: 8px;
}

.why-ch-cta-card .why-ch-cta-title * {
    color: var(--darktheme-bg-medium-gray);
    margin-top: 0;
}

.why-ch-cta-card .why-ch-cta-title span {
    font-size: 25px;
    display: block;
}

.why-ch-cta-card .why-ch-cta-body {
    margin-bottom: 32px;
    z-index: 1;
    position: relative;
}

.why-ch-cta-card .ch-custom-button.square {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='127' height='122' fill='none' viewBox='0 0 127 122'%3E%3Cpath fill='%23353535' d='m61.06 62.363-14.62 48.274A16 16 0 0 1 31.129 122H16c-8.837 0-16-7.163-16-16V16C0 7.163 7.163 0 16 0h95c8.837 0 16 7.163 16 16v19c0 8.837-7.163 16-16 16H76.372A16 16 0 0 0 61.06 62.363Z'/%3E%3C/svg%3E");
}

.why-ch-cta-card .why-ch-cta-link {
    font-family: var(--font-stack-text);
    font-size: var(--custom-title-6-default);
    color: var(--darktheme-white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.why-ch-cta-card .why-ch-cta-link:hover {
    color: var(--darktheme-heading-white);
}

.why-ch-cta-card .ch-btn-icon {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 53px;
}

/* ── Bottom feature cards ── */
.why-ch-feature-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.why-ch-feature-card {
    background: var(--darktheme-bg-gradient-box);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 30px 30px 40px;
    position: relative;
    overflow: hidden;
}

.why-ch-feature-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at top left, rgba(243, 112, 33, 0.4) 0%, transparent 40%), radial-gradient(circle at bottom right, rgba(243, 112, 33, 0.5) 0%, transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.why-ch-feature-card:after {
    content: "";
    background-image: url(/wp-content/uploads/2026/06/why-ch-arrow.svg);
    width: 15px;
    height: 15px;
    position: absolute;
    background-size: 15px;
    right: 40px;
    top: 40px;
}

.why-ch-feature-card:hover::before {
    opacity: 1;
}

.why-ch-feature-card:hover::after {
    background-image: url(/wp-content/uploads/2026/06/why-ch-arrow-gold.svg);
}

.why-ch-feature-card .why-ch-feature-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.why-ch-feature-card .why-ch-feature-title {
    color: var(--darktheme-light-orange);
}

.why-ch-feature-card .why-ch-feature-desc {
    color: var(--darktheme-bg-lightest-gray);
    font-size: 16px;
}

.why-ch-cta-card:hover .ch-custom-button .ch-btn-icon::before {
    background-position: left 50% bottom 50%, left 150% bottom 150%;
}

@media (max-width: 1500px) {

    .why-ch-feature-card,
    .why-ch-stat-card {
        padding: 20px 20px 30px;
    }

    .why-ch-cta-card>a {
        padding: 28px 24px;
    }
}

@media (max-width: 1366px) {
    .why-ch-main-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr 260px;
    }
}

@media (max-width: 1180px) {
    .why-ch-main-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    .why-ch-section-header {
        grid-column: 1 / 5;
    }

    .why-ch-stats-grid {
        grid-column: 1 / 5;
        grid-row: 2 / 4;
    }

    .why-ch-cta-card {
        grid-column: 1 / 5;
        grid-row: 4;
    }
}

/* tablet */
@media screen and (min-width: 768px) and (max-width: 1179px) {
    .why-ch-cta-body {
        max-width: 40%;
    }

    .why-ch-cta-card>a {
        background-image: url(/wp-content/uploads/2026/06/why-cta-cta-tablet-shape.svg);
        background-position: 80% 50%;
        background-size: 300px;
        background-repeat: no-repeat;
    }
}

@media (max-width: 767px) {
    .why-ch-main-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .why-ch-section-header {
        grid-column: 1 / 3;
    }

    .why-ch-section-header h2 {
        white-space: normal;
    }

    .why-ch-stats-grid {
        grid-column: 1 / 3;
        grid-row: 2 / 4;
        grid-template-columns: repeat(2, 1fr);
    }

    .why-ch-cta-card {
        grid-column: 1 / 3;
        grid-row: 4;
    }

    .why-ch-feature-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    #industry-section {
        background: black;
    }

    .why-ch-cta-card>a,
    .why-ch-feature-card,
    .why-ch-stat-card {
        padding: 15px 15px 20px;
    }

    .why-ch-stat-card {
        gap: 15px;
    }

    .why-ch-stat-card .why-ch-stat-desc {
        font-size: 14px;
    }
}