/* Scoped SL service carousel: a static card grid is the no-JavaScript fallback. */
@property --sl-service-border-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.sl-services-carousel {
    --sl-services-purple: #8f6bef;
    --sl-services-pink: #f096d5;
    --sl-services-cyan: #28d3dd;
    --sl-services-peach: #ffd1b3;
    --sl-services-card-width: 400px;
    --sl-services-stage-height: 590px;
    --sl-services-half-stage: 295px;
    --sl-services-offset: 410px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    padding: 76px 28px 55px;
    color: #f8f5ff;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(143, 107, 239, .17), transparent 47%),
        radial-gradient(ellipse at 76% 63%, rgba(240, 150, 213, .12), transparent 43%),
        radial-gradient(ellipse at 55% 95%, rgba(40, 211, 221, .07), transparent 39%),
        #17131f;
}

.sl-services-carousel *,
.sl-services-carousel *::before,
.sl-services-carousel *::after { box-sizing: border-box; }

.sl-services-carousel .sl-services-shell {
    position: relative;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
}

.sl-services-carousel .sl-services-heading {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: 0 auto 16px;
    text-align: center;
}

.sl-services-carousel .sl-services-eyebrow {
    display: inline-block;
    margin-bottom: 15px;
    color: #e4caff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.sl-services-carousel .sl-services-heading h2 {
    margin: 0 0 16px;
    color: #fbf8ff;
    font-size: clamp(29px, 3.3vw, 43px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.035em;
}

.sl-services-carousel .sl-services-heading p {
    max-width: 670px;
    margin: 0 auto;
    color: #c5bdcf;
    font-size: 16px;
    line-height: 1.75;
}

.sl-services-carousel .sl-services-stage {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    perspective: 1200px;
}

.sl-services-carousel .sl-services-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 400px));
    justify-content: center;
    gap: 28px;
    padding: 22px 0;
    transform-style: preserve-3d;
}

.sl-services-carousel .sl-service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 515px;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(191, 162, 237, .3);
    border-radius: 25px;
    color: #f7f1ff;
    background: linear-gradient(155deg, #32243e 0%, #241d30 48%, #201b2b 100%);
    box-shadow: 0 16px 40px rgba(6, 3, 12, .3);
    backface-visibility: hidden;
}

.sl-services-carousel .sl-service-media {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid rgba(211, 188, 249, .14);
    background: #33233f;
    aspect-ratio: 360 / 204;
}

.sl-services-carousel .sl-service-media svg {
    display: block;
    width: 100%;
    height: auto;
}

.sl-services-carousel .sl-service-content {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    padding: 20px 24px 0;
}

.sl-services-carousel .sl-service-kicker {
    display: block;
    margin-bottom: 7px;
    color: #dbbaf7;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.sl-services-carousel .sl-service-content h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}

.sl-services-carousel .sl-service-description {
    margin: 0;
    color: #cfc5db;
    font-size: 14px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.sl-services-carousel .sl-service-pricing { margin: 0 0 16px; }
.sl-services-carousel .sl-service-regular-price { margin-bottom: 5px; color: #cfc5db; font-size: 12px; line-height: 1.6; }
.sl-services-carousel .sl-service-regular-price del { text-decoration-thickness: 1.5px; }
.sl-services-carousel .sl-service-price-label { display: block; margin-bottom: 3px; color: #e9cefb; font-size: 11px; line-height: 1.5; }
.sl-services-carousel .sl-service-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; color: #fff; font-size: 24px; font-weight: 700; line-height: 1.3; }
.sl-services-carousel .sl-service-price strong { color: inherit; font: inherit; }
.sl-services-carousel .sl-service-price small { color: #cfc5db; font-size: 12px; font-weight: 400; }
.sl-services-carousel .sl-service-price-note { display: block; margin: 5px 0 12px; color: #cfc5db; font-size: 11px; line-height: 1.5; }

.sl-services-carousel .sl-service-divider {
    height: 1px;
    margin: 17px 0 14px;
    background: linear-gradient(90deg, rgba(218, 185, 248, .29), rgba(218, 185, 248, .04));
}

.sl-services-carousel .sl-service-link {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 39px;
    margin-top: auto;
    padding: 8px 15px;
    border: 1px solid rgba(219, 189, 251, .36);
    border-radius: 11px;
    color: #f9efff;
    background: rgba(175, 126, 242, .13);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
    text-decoration: none;
}

.sl-services-carousel .sl-service-link:hover {
    border-color: #e8c0f1;
    color: #fff;
    background: rgba(175, 126, 242, .28);
    text-decoration: none;
}

.sl-services-carousel .sl-service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 15px 24px 23px;
    list-style: none;
}

.sl-services-carousel .sl-service-tags li {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    margin: 0;
    padding: 3px 8px;
    border: 1px solid rgba(211, 179, 249, .15);
    border-radius: 6px;
    color: #cdbbdc;
    background: rgba(214, 170, 250, .055);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}

.sl-services-carousel.is-enhanced .sl-services-stage {
    min-height: var(--sl-services-stage-height);
}

/* One shared grid cell keeps the original 3D composition, while the tallest card
   reserves real space even after prices, text or the number of cards change. */
.sl-services-carousel.is-enhanced .sl-services-track {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    min-height: var(--sl-services-stage-height);
    padding: 24px 0;
}

.sl-services-carousel.is-enhanced .sl-service-card {
    grid-area: 1 / 1;
    justify-self: center;
    align-self: center;
    width: var(--sl-services-card-width);
    max-width: 100%;
    opacity: 0;
    transform: scale(.7);
    transition: transform 600ms cubic-bezier(.22, .65, .25, 1), opacity 600ms ease;
}

.sl-services-carousel.is-enhanced .sl-service-card.is-active {
    z-index: 3;
    border-color: #bd92f3;
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 1px rgba(214, 169, 253, .22), 0 0 33px rgba(143, 107, 239, .2), 0 25px 65px rgba(6, 3, 12, .5);
}

/* Only the selected card has a moving, hollow border; content and links stay clear. */
@supports (mask-composite: exclude) or (-webkit-mask-composite: xor) {
    .sl-services-carousel.is-enhanced .sl-service-card.is-active::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 5;
        padding: 3px;
        border-radius: inherit;
        pointer-events: none;
        background: conic-gradient(from var(--sl-service-border-angle),
            #8f6bef 0deg, #f096d5 80deg, #ffd1b3 150deg,
            #28d3dd 225deg, #8f6bef 310deg, #8f6bef 360deg);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
        animation: sl-services-border-turn 12s linear infinite paused;
    }

    .sl-services-carousel[data-services-border-motion="running"] .sl-service-card.is-active::before {
        animation-play-state: running;
    }
}

@keyframes sl-services-border-turn {
    to { --sl-service-border-angle: 360deg; }
}

.sl-services-carousel.is-enhanced .sl-service-card.is-prev {
    z-index: 2;
    opacity: .56;
    transform: translateX(calc(-1 * var(--sl-services-offset))) rotateY(14deg) scale(.88);
    pointer-events: none;
}

.sl-services-carousel.is-enhanced .sl-service-card.is-next {
    z-index: 2;
    opacity: .56;
    transform: translateX(var(--sl-services-offset)) rotateY(-14deg) scale(.88);
    pointer-events: none;
}

.sl-services-carousel.is-enhanced .sl-service-card.is-away {
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.sl-services-carousel.is-enhanced .sl-service-card:not(.is-active) .sl-service-link {
    pointer-events: none;
}

.sl-services-carousel .sl-services-controls {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 24px;
    min-height: 44px;
}

.sl-services-carousel [data-services-controls][hidden] { display: none !important; }

.sl-services-carousel .sl-services-arrow {
    position: absolute;
    top: calc(-1 * var(--sl-services-half-stage) - 24px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(217, 178, 249, .33);
    border-radius: 50%;
    color: #f7eaff;
    background: rgba(42, 30, 54, .87);
    box-shadow: 0 6px 20px rgba(5, 2, 10, .15);
    font: inherit;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
}

.sl-services-carousel .sl-services-arrow.is-prev { left: 0; }
.sl-services-carousel .sl-services-arrow.is-next { right: 0; }
.sl-services-carousel .sl-services-arrow svg { width: 19px; height: 19px; }
.sl-services-carousel .sl-services-arrow svg path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.sl-services-carousel .sl-services-arrow:hover {
    border-color: #bd92f3;
    color: #fff;
    background: #4b3265;
}

.sl-services-carousel .sl-services-dots {
    display: inline-flex;
    flex-wrap: wrap;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sl-services-carousel .sl-services-dot {
    position: relative;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    cursor: pointer;
}

.sl-services-carousel .sl-services-dot::before {
    content: "";
    position: absolute;
    top: 14px;
    right: 0;
    left: 0;
    height: 4px;
    border-radius: 5px;
    background: #665371;
}

.sl-services-carousel .sl-services-dot[aria-current="true"]::before {
    background: linear-gradient(90deg, #9b7bff, #f1aad7);
    box-shadow: 0 0 10px rgba(206, 154, 243, .25);
}

.sl-services-carousel .sl-services-dot:hover::before { background: #c2a5d7; }

.sl-services-carousel .sl-services-pause {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 6px 12px;
    border: 1px solid rgba(197, 162, 226, .23);
    border-radius: 8px;
    color: #d9c8e8;
    background: rgba(197, 162, 226, .055);
    font: inherit;
    font-size: 11px;
    line-height: 1.5;
    cursor: pointer;
}

.sl-services-carousel .sl-services-pause:hover:not(:disabled) { border-color: #bd92f3; color: #fff; }
.sl-services-carousel .sl-services-pause:disabled { cursor: default; opacity: .7; }

.sl-services-carousel .sl-service-link:focus-visible,
.sl-services-carousel .sl-services-arrow:focus-visible,
.sl-services-carousel .sl-services-dot:focus-visible,
.sl-services-carousel .sl-services-pause:focus-visible {
    outline: 3px solid #77e6dd;
    outline-offset: 4px;
}

.sl-services-carousel .sl-services-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 1099px) {
    .sl-services-carousel { --sl-services-card-width: 380px; --sl-services-offset: 365px; }
    .sl-services-carousel .sl-services-arrow.is-prev { left: 2px; }
    .sl-services-carousel .sl-services-arrow.is-next { right: 2px; }
}

@media (max-width: 899px) {
    .sl-services-carousel { --sl-services-card-width: 360px; --sl-services-offset: 345px; padding-right: 20px; padding-left: 20px; }
    .sl-services-carousel .sl-services-arrow.is-prev { left: -3px; }
    .sl-services-carousel .sl-services-arrow.is-next { right: -3px; }
}

@media (max-width: 699px) {
    .sl-services-carousel {
        --sl-services-card-width: min(400px, calc(100vw - 40px));
        --sl-services-offset: 295px;
        --sl-services-stage-height: 565px;
        --sl-services-half-stage: 282.5px;
        padding: 53px 20px 40px;
    }
    .sl-services-carousel .sl-services-heading { margin-bottom: 8px; }
    .sl-services-carousel .sl-services-heading h2 { max-width: 480px; margin-right: auto; margin-left: auto; }
    .sl-services-carousel .sl-services-heading p { max-width: 455px; font-size: 14px; }
    .sl-services-carousel .sl-services-eyebrow { font-size: 10px; }
    .sl-services-carousel .sl-services-track { grid-template-columns: minmax(0, 400px); }
    .sl-services-carousel .sl-services-stage { margin-top: 4px; }
    .sl-services-carousel .sl-service-card { min-height: 510px; }
    .sl-services-carousel .sl-services-controls { gap: 10px; padding: 0 54px; }
    .sl-services-carousel .sl-services-arrow { top: 0; width: 42px; height: 42px; }
    .sl-services-carousel .sl-services-arrow.is-prev { left: 2px; }
    .sl-services-carousel .sl-services-arrow.is-next { right: 2px; }
    .sl-services-carousel .sl-services-pause { flex-basis: auto; }
}

@media (max-width: 449px) {
    .sl-services-carousel {
        --sl-services-offset: 245px;
        --sl-services-stage-height: 558px;
        padding-right: 15px;
        padding-left: 15px;
    }
    .sl-services-carousel .sl-service-content { padding-right: 19px; padding-left: 19px; }
    .sl-services-carousel .sl-service-content h3 { font-size: 23px; }
    .sl-services-carousel .sl-service-description { font-size: 13px; }
    .sl-services-carousel .sl-service-tags { gap: 5px; padding-right: 19px; padding-left: 19px; }
    .sl-services-carousel .sl-service-tags li { padding-right: 6px; padding-left: 6px; font-size: 9px; }
    .sl-services-carousel .sl-services-controls { gap: 7px 10px; }
    .sl-services-carousel .sl-services-dots { gap: 6px; }
    .sl-services-carousel .sl-services-dot { width: 25px; }
    .sl-services-carousel .sl-services-pause { min-height: 31px; font-size: 10px; }
}

@media (max-width: 349px) {
    .sl-services-carousel { --sl-services-offset: 216px; }
    .sl-services-carousel .sl-services-heading h2 { font-size: 28px; }
    .sl-services-carousel .sl-service-content { padding-right: 16px; padding-left: 16px; }
    .sl-services-carousel .sl-service-content h3 { font-size: 22px; }
    .sl-services-carousel .sl-service-tags { padding-right: 16px; padding-left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .sl-services-carousel.is-enhanced .sl-service-card { transition: none; }
    .sl-services-carousel.is-enhanced .sl-service-card.is-active::before { animation: none; }
}
