/*
 * Shared legacy template-parts, ported to the v2 stack.
 * Covers the three cross-page parts reused by the product/case-study/demo pages:
 *   - our-services   (template-parts/shared/our-services.php)
 *   - businesses     (template-parts/shared/businesses.php)
 *   - reviews marquee(template-parts/shared/reviews-legacy.php + reviews-marquee.js)
 *
 * Everything is scoped under .v2-page so the shared header/footer keep their own
 * styling and nothing leaks. Loaded on every v2 page (the selectors only match
 * where these parts actually render, so a global load is harmless).
 *
 * All text uses Nunito (the single brand typeface, loaded by core/fonts.css);
 * these parts inherit it, so no @font-face is declared here.
 */

/* ════════════════════════════════════════════════════════════════════════
   Our Services — pink banner band with title + subtitle
   ════════════════════════════════════════════════════════════════════════ */
.v2-page .dd-our-services {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 -40px;
    background-image: url(../../images/bg-pink.png);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 171px;
}
.v2-page .dd-our-services__title {
    font-family: 'Nunito', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 24px;
    line-height: 31px;
    margin-bottom: 8px;
    margin-top: 40px;
}
.v2-page .dd-our-services__sub-title {
    font-family: 'Nunito', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 26px;
    margin-bottom: 0;
}
@media (max-width: 992px) {
    .v2-page .dd-our-services {
        height: 136.23px;
        background-position: center center;
    }
    .v2-page .dd-our-services__title {
        font-size: 20px;
        line-height: 26px;
        margin-top: 30px;
    }
    .v2-page .dd-our-services__sub-title {
        font-size: 16px;
        line-height: 21px;
        text-align: center;
    }
}

/* ════════════════════════════════════════════════════════════════════════
   Businesses — "Growing more than 1000+ businesses" logo strip
   The legacy markup nested this in a Bootstrap .container/.row/.col; the v2
   markup drops that wrapper, so the centering/max-width lives here instead.
   ════════════════════════════════════════════════════════════════════════ */
.v2-page .dd-businesses {
    max-width: 1320px;
    margin: 52px auto 60px;
    padding: 0 0.75rem;
    text-align: center;
}
.v2-page .dd-businesses__heading {
    font-family: 'Nunito', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 26px;
    color: #1d1d1d;
    margin-bottom: 30px;
}
.v2-page .dd-businesses__logo {
    display: flex;
    gap: 50px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.v2-page .dd-businesses__logo img {
    height: 150px;
    width: auto;
}

/* ════════════════════════════════════════════════════════════════════════
   Reviews marquee — infinite auto-scrolling customer-review strip.
   Vanilla port of the legacy GSAP horizontalLoop: the track translates via
   reviews-marquee.js; play/pause + hover-pause handled there.
   ════════════════════════════════════════════════════════════════════════ */
.v2-page .dd-reviews {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.v2-page .dd-reviews__play {
    position: absolute;
    right: 100px;
    cursor: pointer;
    z-index: 1000;
}
.v2-page .dd-reviews__play img {
    width: 56px;
    display: block;
}
.v2-page .dd-reviews__slider {
    justify-content: space-between;
    width: max-content;
    overflow: hidden;
}
.v2-page .dd-reviews .control-slide {
    width: 56px;
    display: block;
}
.v2-page .dd-reviews .card-slider {
    display: flex;
    margin: 65px 0 10px;
    justify-content: space-between;
    width: max-content;
    will-change: transform;
}
.v2-page .dd-reviews__slider .card-item {
    width: 530px;
    min-height: 280px;
}
.v2-page .dd-reviews .card-item:not(:last-child) {
    margin-right: 30px;
}
.v2-page .dd-reviews .box-content {
    position: relative;
    background: #ffffff;
    border: 4px solid #1d1d1d;
    box-shadow: #000000 10px 10px 0px;
    border-radius: 10px;
    padding: 44.5px 30px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.v2-page .dd-reviews .box-content .typing-content {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    font-style: italic;
    margin: 0;
}
.v2-page .dd-reviews .box-content:hover .typing-content,
.v2-page .dd-reviews .box-content:hover .post-message {
    color: #ffffff;
}
.v2-page .dd-reviews .box-content:hover {
    background: #f62369;
}
.v2-page .dd-reviews .quote-sharing {
    width: 20px;
}
.v2-page .dd-reviews .circle-quote {
    width: 44px;
    height: 44px;
    background-color: #ffcb47;
    border-radius: 22px;
    padding: 6px 1px 6px 7px;
    border: 4px solid #1d1d1d;
    position: absolute;
    top: -25px;
    left: 10px;
}
.v2-page .dd-reviews .name_star {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    gap: 1rem;
}
.v2-page .dd-reviews .name_star .review-star {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
}
