/* =========================================================
   COLLADOME CASE STUDY SLIDER
   ========================================================= */

.colladome-case-slider {
    --cd-gold: #c8951b;
    --cd-gold-hover: #ad7d10;
    --cd-title: #bc7600;
    --cd-ink: #141414;
    --cd-radius: 18px;

    position: relative;

    width: 100%;
    max-width: 1180px;

    margin: 0 auto;
    padding: 0 38px;

    box-sizing: border-box;
}

.colladome-case-slider *,
.colladome-case-slider *::before,
.colladome-case-slider *::after {
    box-sizing: border-box;
}


/* =========================================================
   VIEWPORT
   ========================================================= */

.colladome-case-slider__viewport {
    position: relative;

    width: 100%;

    overflow: hidden;
}


/* =========================================================
   TRACK
   ========================================================= */

.colladome-case-slider__track {
    display: flex;

    width: 100%;

    will-change: transform;

    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.colladome-case-slider__track.is-no-transition {
    transition: none;
}


/* =========================================================
   SLIDE

   Holds the gutter the card's drop shadow needs. Without it
   the shadow gets sliced off by the viewport's overflow.
   Shadow reach: 28px right / 28px down / 12px left+top.
   ========================================================= */

.colladome-case-slider__slide {
    flex: 0 0 100%;

    width: 100%;
    min-width: 100%;

    padding: 16px 32px 32px 32px;
}


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

.colladome-case-card {
    position: relative;

    width: 100%;

    height: 400px;

    display: flex;

    overflow: hidden;

    border-radius: var(--cd-radius);

    border: 0;

    /* colours come from the shortcode, per case study */
    background:
        linear-gradient(
            100deg,
            #ffffff 0%,
            #ffffff 38%,
            var(--cd-tint, #fdf3fb) 50%,
            var(--cd-mid, #f1cceb) 64%,
            var(--cd-deep, #dd76c9) 84%,
            var(--cd-strong, #c343ae) 100%
        );

    /* Figma: drop shadow 4/8 blur 16 spread 0 @ 25%
              drop shadow 8/4 blur 16 spread 4 @ 25% */
    box-shadow:
        4px 8px 16px 0 rgba(0, 0, 0, 0.25),
        8px 4px 16px 4px rgba(0, 0, 0, 0.25);

    isolation: isolate;
}


/* =========================================================
   LEFT CONTENT
   ========================================================= */

.colladome-case-card__content {
    position: relative;

    z-index: 3;

    width: 53%;
    min-width: 53%;

    height: 100%;

    padding: 46px 16px 38px 36px;

    display: flex;
    flex-direction: column;

    justify-content: flex-start;
}


/* =========================================================
   TITLE
   ========================================================= */

.colladome-case-card__title {
    margin: 0 0 18px 0 !important;

    padding: 0 !important;

    color: var(--cd-title) !important;

    font-size: 40px !important;

    line-height: 1.05 !important;

    font-weight: 700 !important;

    letter-spacing: -0.5px;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.colladome-case-card__description {
    /* narrow enough to wrap the way the design does */
    max-width: 340px;

    margin: 0 !important;

    padding: 0 !important;

    color: var(--cd-ink);

    font-size: 19px;

    line-height: 1.35;

    font-weight: 600;

    letter-spacing: -0.2px;
}


/* =========================================================
   RESULTS
   ========================================================= */

.colladome-case-card__results {
    margin-top: 30px;
}

.colladome-case-card__results-title {
    margin: 0 0 14px 0 !important;

    padding: 0 !important;

    color: #111111 !important;

    font-size: 20px !important;

    line-height: 1.2 !important;

    font-weight: 700 !important;
}


/* =========================================================
   STATS
   ========================================================= */

.colladome-case-card__stats {
    display: flex;

    align-items: stretch;

    width: 100%;

    /* bounded by the content column, not a fixed cap, so the
       longer slide-2 labels still fit without a wrap */
    max-width: 100%;
}

.colladome-case-card__stat {
    display: flex;

    align-items: center;

    min-height: 42px;

    padding: 0 13px;

    border-right: 1px solid rgba(0, 0, 0, 0.22);
}

.colladome-case-card__stat:first-child {
    padding-left: 0;
}

.colladome-case-card__stat:last-child {
    border-right: 0;

    padding-right: 0;
}

.colladome-case-card__stat-value {
    flex-shrink: 0;

    margin-right: 7px;

    color: #111111;

    font-size: 21px;

    line-height: 1;

    font-weight: 700;

    letter-spacing: -0.5px;
}

.colladome-case-card__stat-text {
    color: #1f1f1f;

    font-size: 10px;

    line-height: 1.2;

    font-weight: 400;

    white-space: nowrap;
}


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

.colladome-case-card__button {
    display: inline-flex;

    align-items: center;
    justify-content: space-between;

    width: 150px;
    height: 48px;

    margin-top: auto;

    padding: 0 8px;

    text-decoration: none !important;

    border: 2px solid var(--cd-gold) !important;

    border-radius: 12px !important;

    background: #ffffff !important;
    background-image: none !important;

    box-shadow: none !important;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}


/* Gold inner pill */

.colladome-case-card__button-label {
    display: flex;

    align-items: center;
    justify-content: center;

    height: 36px;

    padding: 0 15px;

    border-radius: 8px;

    background: var(--cd-gold);

    color: #ffffff;

    font-size: 14px;

    line-height: 1;

    font-weight: 700;

    white-space: nowrap;
}


/* Arrow */

.colladome-case-card__button-arrow {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 30px;

    color: var(--cd-gold);
}

.colladome-case-card__button-arrow svg {
    display: block;

    width: 21px;
    height: 21px;
}

.colladome-case-card__button:hover {
    background: #fffdf6 !important;

    transform: translateY(-1px);
}

.colladome-case-card__button:focus-visible {
    outline: 2px solid var(--cd-gold-hover);
    outline-offset: 3px;
}


/* =========================================================
   IMAGE AREA

   The mockup PNG already contains the "AI" tag, so no badge
   markup is needed. object-fit is forced because themes
   (Elementor / Astra) commonly override img sizing, which
   crops the mockup top and bottom.
   ========================================================= */

.colladome-case-card__image {
    position: absolute;

    top: 0;
    right: 0;
    bottom: 0;

    width: 56%;

    height: 100%;

    z-index: 1;

    display: flex;

    align-items: center;
    justify-content: flex-end;

    overflow: hidden;

    pointer-events: none;
}

.colladome-case-card__image img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;
    max-height: none !important;
    min-width: 0 !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    /* contain = never crop the mockup */
    object-fit: contain !important;
    object-position: 100% 50% !important;

    transform: none !important;

    user-select: none;
}


/* =========================================================
   ARROWS

   Reset hard: theme button styles otherwise repaint these
   as brand-coloured rounded rectangles.
   ========================================================= */

.colladome-case-slider .colladome-case-slider__arrow {
    position: absolute;

    top: 50%;

    z-index: 10;

    width: 42px !important;
    height: 42px !important;

    min-width: 0 !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex;

    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    -webkit-appearance: none;
    appearance: none;

    border: 0 !important;

    border-radius: 50% !important;

    background: var(--cd-gold) !important;
    background-image: none !important;

    color: #ffffff !important;

    font-size: 0 !important;
    line-height: 0 !important;

    text-shadow: none !important;

    cursor: pointer;

    box-shadow: 0 3px 10px rgba(17, 17, 17, 0.16) !important;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.colladome-case-slider .colladome-case-slider__arrow svg {
    display: block;

    width: 20px;
    height: 20px;

    stroke: #ffffff;
}

.colladome-case-slider__arrow--prev {
    left: 6px;
}

.colladome-case-slider__arrow--next {
    right: 6px;
}

.colladome-case-slider .colladome-case-slider__arrow:hover,
.colladome-case-slider .colladome-case-slider__arrow:focus {
    background: var(--cd-gold-hover) !important;
}

.colladome-case-slider .colladome-case-slider__arrow:hover {
    transform: translateY(-50%) scale(1.06);
}

.colladome-case-slider .colladome-case-slider__arrow:focus-visible {
    outline: 2px solid var(--cd-gold-hover);
    outline-offset: 3px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .colladome-case-slider {
        padding: 0 30px;
    }

    .colladome-case-slider__slide {
        padding: 14px 26px 26px 26px;
    }

    .colladome-case-card {
        height: 360px;
    }

    .colladome-case-card__content {
        width: 54%;
        min-width: 54%;

        padding: 34px 16px 30px 30px;
    }

    .colladome-case-card__title {
        font-size: 32px !important;

        margin-bottom: 14px !important;
    }

    .colladome-case-card__description {
        font-size: 17px;

        max-width: 300px;
    }

    .colladome-case-card__results {
        margin-top: 22px;
    }

    .colladome-case-card__results-title {
        font-size: 18px !important;
    }

    .colladome-case-card__stat {
        padding: 0 11px;
    }

    .colladome-case-card__stat-value {
        font-size: 19px;
    }

    .colladome-case-card__stat-text {
        font-size: 9px;
    }

    .colladome-case-card__image {
        width: 53%;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .colladome-case-slider {
        padding: 0 14px;
    }

    .colladome-case-slider__slide {
        padding: 10px 20px 22px 20px;
    }

    .colladome-case-card {
        height: auto;

        /* scaled down so it stays proportional on a small card */
        box-shadow:
            3px 6px 12px 0 rgba(0, 0, 0, 0.22),
            6px 3px 12px 3px rgba(0, 0, 0, 0.22);

        flex-direction: column;

        border-radius: 14px;

        background:
            linear-gradient(
                165deg,
                #ffffff 0%,
                #ffffff 42%,
                var(--cd-tint, #fdf3fb) 56%,
                var(--cd-mid, #f1cceb) 72%,
                var(--cd-deep, #dd76c9) 92%,
                var(--cd-strong, #c343ae) 100%
            );
    }

    .colladome-case-card__content {
        order: 1;

        width: 100%;
        min-width: 100%;

        height: auto;

        padding: 28px 22px 24px 22px;
    }

    .colladome-case-card__title {
        font-size: 30px !important;
    }

    .colladome-case-card__description {
        font-size: 16px;

        max-width: 78%;
    }

    .colladome-case-card__stats {
        max-width: 100%;
    }

    .colladome-case-card__stat {
        padding: 0 9px;
    }

    .colladome-case-card__stat-value {
        font-size: 18px;

        margin-right: 5px;
    }

    .colladome-case-card__stat-text {
        font-size: 8.5px;
    }

    .colladome-case-card__button {
        margin-top: 24px;
    }

    /* image drops below the copy */
    .colladome-case-card__image {
        position: relative;

        order: 2;

        top: auto;
        right: auto;
        bottom: auto;

        width: 100%;

        height: 220px;

        justify-content: center;
    }

    .colladome-case-card__image img {
        object-position: 50% 50% !important;
    }

    .colladome-case-slider .colladome-case-slider__arrow {
        width: 34px !important;
        height: 34px !important;
    }

    .colladome-case-slider .colladome-case-slider__arrow svg {
        width: 17px;
        height: 17px;
    }

    .colladome-case-slider__arrow--prev {
        left: 0;
    }

    .colladome-case-slider__arrow--next {
        right: 0;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .colladome-case-slider {
        padding: 0 10px;
    }

    .colladome-case-slider__slide {
        padding: 8px 16px 18px 16px;
    }

    .colladome-case-card__content {
        padding: 24px 18px 20px 18px;
    }

    .colladome-case-card__title {
        font-size: 27px !important;
    }

    .colladome-case-card__description {
        font-size: 15px;

        max-width: 90%;
    }

    .colladome-case-card__results-title {
        font-size: 17px !important;
    }

    .colladome-case-card__stat {
        padding: 0 6px;
    }

    .colladome-case-card__stat-value {
        font-size: 16px;
    }

    .colladome-case-card__stat-text {
        font-size: 7.5px;
    }

    .colladome-case-card__image {
        height: 195px;
    }

}


/* =========================================================
   MOTION PREFERENCE
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .colladome-case-slider__track,
    .colladome-case-card__button,
    .colladome-case-slider .colladome-case-slider__arrow {
        transition: none;
    }

}