/**
 * solutionsv2.css
 * Overrides for Solutions page redesigns (e.g. Personalization).
 * Load only on target pages via enqueue_styles_by_page().
 *
 * Figma: Trust Bar title 694:1671 / 694:1669
 */

/* -------------------------------------------------------------------------
   Full page background
   ------------------------------------------------------------------------- */

body,
#page,
#content,
#primary,
#main,
.site,
.site-content,
.inside-article {
    background-color: #e3e1fc !important;
    background-image: none !important;
}

/* Header — Figma Header - Site 930:999: white bg; bottom rule via --gray-border */
.site-header,
#masthead {
    background-color: #ffffff !important;
    background-image: none !important;
    border-bottom: 1px solid var(--gray-border, #e8e8e8);
    box-shadow: none;
}

@media (max-width: 945px) {
    #mobile-header {
        background-color: #ffffff !important;
        background-image: none !important;
        border-bottom: 1px solid var(--gray-border, #e8e8e8);
        box-shadow: none;
    }
}

/* -------------------------------------------------------------------------
   QnA + y2026-closing-banner backgrounds
   FAQ desktop: section #e3e1fc (sides/top); card (.container) stays white
   Closing banner 694:2210: #e3e1fc
   (beat inline background-color:#ffffff00)
   ------------------------------------------------------------------------- */

.section-wrap.qna {
    background-color: #e3e1fc !important;
    background-image: none !important;
}

.section-wrap.qna .container {
    background-color: #ffffff !important;
}

/* FAQ answer links — Figma 1186:532 */
.section-wrap.qna .answer-wrapper a {
    color: inherit;
    text-decoration-line: underline !important;
    text-decoration-style: solid;
    text-decoration-color: currentColor;
    text-decoration-thickness: auto;
    text-decoration-skip-ink: none;
    text-underline-position: from-font;
}

.section-wrap.image-side.y2026-closing-banner {
    background-color: #e3e1fc !important;
    background-image: none !important;
}

/* -------------------------------------------------------------------------
   QnA → y2026-closing-banner — 100px between sections
   Live was ~260px (qna pb 100 + mb 60 + banner pt 100)
   ------------------------------------------------------------------------- */

.section-wrap.qna:has(+ .section-wrap.image-side.y2026-closing-banner) {
    padding-bottom: 0 !important;
    margin-bottom: 0;
    margin-top: 0;
    padding-top: 90px;
}

.section-wrap.qna + .section-wrap.image-side.y2026-closing-banner {
    margin-top: 0;
    padding-top: 100px;
}

@media screen and (max-width: 768px) {
    /* Featured In → FAQ: 50px between sections */
    .section-wrap.hp-logos:has(+ .section-wrap.qna) {
        margin-bottom: 0 !important;
        padding-bottom: 50px !important;
    }

    .section-wrap.hp-logos + .section-wrap.qna {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* FAQ mobile — section lavender (top/bottom); white card full width */
    .section-wrap.qna {
        background-color: #e3e1fc !important;
        background-image: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .section-wrap.qna .container {
        background-color: #ffffff !important;
        border-radius: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .section-wrap.qna:has(+ .section-wrap.image-side.y2026-closing-banner) {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Closing banner mobile — Figma 736:648: full width, mt 0, pt 50 */
    .section-wrap.image-side.y2026-closing-banner,
    .section-wrap.qna + .section-wrap.image-side.y2026-closing-banner {
        margin-top: 0 !important;
        padding-top: 50px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        background-color: #ffffff !important;
        background-image: none !important;
    }

    .section-wrap.image-side.y2026-closing-banner .container {
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 0 !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        background-color: transparent !important;
    }

    /* QnA question — Figma 738:1783: 14px / 600 (live was 16/700) */
    .section-wrap.qna summary {
        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 20px !important;
        color: #383700 !important;
    }
}

/* -------------------------------------------------------------------------
   who-benefits mobile — Figma 736:621
   Page-scoped overrides to beat sections.css h2/h3 + inline #ffffff00
   ------------------------------------------------------------------------- */

@media screen and (max-width: 768px) {
    .section-wrap.who-benefits {
        background-color: #e3e1fc !important;
        background-image: none !important;
        padding-top: 50px !important;
        padding-bottom: 50px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .section-wrap.who-benefits .who-benefits__container.container {
        gap: 40px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .section-wrap.who-benefits .who-benefits__intro {
        display: contents;
    }

    .section-wrap.who-benefits h2.who-benefits__title {
        font-size: 26px !important;
        font-weight: 700 !important;
        line-height: 35px !important;
        color: #383700 !important;
        text-align: left !important;
    }

    .section-wrap.who-benefits .who-benefits__subtitle {
        font-size: 18px !important;
        font-weight: 400 !important;
        line-height: 25px !important;
        text-align: left !important;
    }

    .section-wrap.who-benefits .who-benefits__cta.btn-solid {
        width: 100% !important;
        min-height: 58px;
        margin-top: 0 !important;
        padding: 20px 24px !important;
        border-radius: 30px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
    }

    .section-wrap.who-benefits h3.who-benefits__card-title {
        font-size: 20px !important;
        font-weight: 700 !important;
        line-height: normal !important;
        color: #383700 !important;
        text-align: left !important;
    }

    .section-wrap.who-benefits .who-benefits__card {
        background-color: #fafafa !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 12px !important;
        padding: 24px !important;
        gap: 12px !important;
    }

    .section-wrap.who-benefits .who-benefits__card-body {
        font-size: 16px !important;
        font-weight: 400 !important;
        line-height: 22px !important;
    }

    .section-wrap.who-benefits .who-benefits__learn-more {
        font-size: 14px !important;
        font-weight: 700 !important;
        line-height: 28px !important;
    }
}

/* -------------------------------------------------------------------------
   hp-logos — Featured In background
   Figma 694:2107: #e3e1fc (beat inline #ffffff00)
   ------------------------------------------------------------------------- */

.section-wrap.hp-logos {
    background-color: #e3e1fc !important;
    background-image: none !important;
}

/* Featured In mobile — gallery was off-center:
   inline width:754px + ACF translate(-21%/-14%) on logos */
@media screen and (max-width: 768px) {
    .section-wrap.hp-logos .images-gallery {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        justify-content: center !important;
        box-sizing: border-box;
    }

    .section-wrap.hp-logos .images-gallery .image-item {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        box-sizing: border-box;
    }

    .section-wrap.hp-logos .images-gallery .image-item a {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100%;
    }

    /* Drop ACF translate/scale offsets that pull logos left */
    .section-wrap.hp-logos .images-gallery li img.mobile {
        transform: none !important;
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
        max-height: 40px !important;
        object-fit: contain;
    }
}

/* -------------------------------------------------------------------------
   platform-text-test-slider
   Arrows use negative bottom (-38 / -50 / -70 / -82). Section overflow:hidden
   clips them if padding is too small. Keep arrow fully visible + 50px under it.
   ------------------------------------------------------------------------- */

.section-wrap.platform-text-test-slider {
    /* inline arrow bottom:-38px + 50px clearance */
    padding-bottom: 88px !important;
    background-color: #e3e1fc !important;
    background-image: none !important;
    overflow: visible !important;
}

@media screen and (min-width: 1251px) {
    .section-wrap.platform-text-test-slider h2.title,
    .section-wrap.platform-text-test-slider .title {
        font-size: 50px !important;
    }
}

@media screen and (max-width: 768px) {
    .section-wrap.platform-text-test-slider h2.title,
    .section-wrap.platform-text-test-slider .title {
        font-size: 26px !important;
    }
}

@media screen and (max-width: 1730px) {
    .section-wrap.platform-text-test-slider {
        /* common-sections arrow bottom: -50px */
        padding-bottom: 100px !important;
    }
}

@media screen and (max-width: 1676px) {
    .section-wrap.platform-text-test-slider {
        /* common-sections arrow bottom: -70px */
        padding-bottom: 120px !important;
    }
}

@media screen and (max-width: 1550px) {
    .section-wrap.platform-text-test-slider {
        /* common-sections arrow bottom: -82px */
        padding-bottom: 132px !important;
    }
}

/* -------------------------------------------------------------------------
   capabilities-v2 rows — Figma 694:1712
   Fixed 550 text + 550 media; only the space between grows
   ------------------------------------------------------------------------- */

.section-wrap.capabilities-v2 .capabilities-v2__row {
    justify-content: space-between !important;
    gap: 0 !important;
}

.section-wrap.capabilities-v2 .capabilities-v2__content,
.section-wrap.capabilities-v2 .capabilities-v2__media {
    flex: 0 0 550px !important;
    width: 550px !important;
    max-width: 550px !important;
}

.section-wrap.capabilities-v2 .capabilities-v2__media {
    height: 350px !important;
}

@media screen and (max-width: 1250px) {
    .section-wrap.capabilities-v2 .capabilities-v2__row {
        gap: 40px !important;
    }

    .section-wrap.capabilities-v2 .capabilities-v2__content,
    .section-wrap.capabilities-v2 .capabilities-v2__media {
        flex: 0 1 550px !important;
        width: calc((100% - 40px) / 2) !important;
        max-width: calc((100% - 40px) / 2) !important;
    }
}

@media screen and (max-width: 768px) {
    .section-wrap.capabilities-v2 .capabilities-v2__content,
    .section-wrap.capabilities-v2 .capabilities-v2__media {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .section-wrap.capabilities-v2 .capabilities-v2__media {
        height: auto !important;
    }
}

/* -------------------------------------------------------------------------
   logos-carousel — Trust Bar title
   ------------------------------------------------------------------------- */

.section-wrap.logos-carousel {
    padding-top: 50px;
    padding-bottom: 50px;
    background-color: #ffffff !important;
    background-image: none !important;
}

.section-wrap.logos-carousel h2.title,
.section-wrap.logos-carousel h2.title.center {
    margin: 0 auto;
    width: auto !important;
    max-width: 100%;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 27px !important;
    letter-spacing: 0 !important;
    color: #383700 !important;
    text-align: center !important;
    text-transform: none;
    white-space: nowrap;
}

.section-wrap.logos-carousel .logos-swiper {
    margin-top: 50px;
}

@media screen and (max-width: 1024px) {
    .section-wrap.logos-carousel {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .section-wrap.logos-carousel h2.title,
    .section-wrap.logos-carousel h2.title.center {
        white-space: normal;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }

    .section-wrap.logos-carousel .logos-swiper {
        margin-top: 40px;
    }
}

@media screen and (max-width: 768px) {
    .section-wrap.logos-carousel {
        padding-top: 40px;
        padding-bottom: 30px;
    }

    .section-wrap.logos-carousel h2.title,
    .section-wrap.logos-carousel h2.title.center {
        font-size: 18px !important;
        font-weight: 700 !important;
        line-height: 22px !important;
        white-space: normal;
        padding-left: 20px;
        padding-right: 20px;
    }

    .section-wrap.logos-carousel .logos-swiper {
        margin-top: 32px;
    }
}
