/**
 * Nečiūnas NT Elementor Services widget.
 */

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

.neciunasnt-services {
    --neciunasnt-services-burgundy: #391214;
    --neciunasnt-services-cream: var(--color-cream, #f2eee3);
    --neciunasnt-services-muted: #6b645d;
    --neciunasnt-services-gap: 32px;
    --neciunasnt-services-decoration-opacity: 1;

    position: relative;
    isolation: isolate;
    width: 100%;
    overflow: hidden;
    padding-block: clamp(88px, 8.35vw, 120px);
    color: var(--neciunasnt-services-burgundy);
    background-color: var(--neciunasnt-services-cream);
    font-family: var(--font-primary, "TT Firs Neue", Arial, sans-serif);
}

.neciunasnt-services::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    background-image: var(--neciunasnt-services-decoration);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    content: "";
    opacity: var(--neciunasnt-services-decoration-opacity);
    pointer-events: none;
}

.neciunasnt-services__inner {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 48px), 1240px);
    margin-inline: auto;
}

.neciunasnt-services__heading {
    margin: 0 0 64px;
}

.neciunasnt-services__eyebrow {
    margin: 0 0 12px;
    color: var(--neciunasnt-services-burgundy);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    line-height: 1.4;
    text-transform: uppercase;
}

.neciunasnt-services__title {
    margin: 0;
    color: var(--neciunasnt-services-burgundy);
    font-size: clamp(34px, 3.1vw, 40px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    text-transform: uppercase;
}

.neciunasnt-services__viewport {
    width: 100%;
    min-width: 0;
}

.neciunasnt-services__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--neciunasnt-services-gap);
    width: 100%;
    margin: 0;
    padding: 0;
}

.neciunasnt-services__card {
    display: flex;
    min-width: 0;
    min-height: 360px;
    flex-direction: column;
    padding: 40px;
    border: 1px solid #cbbfb4;
    border-radius: 20px;
    background-color: rgba(242, 238, 227, 0.6);
}

.neciunasnt-services__icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    margin: 0 0 24px;
    color: var(--neciunasnt-services-burgundy);
    font-size: 44px;
    line-height: 1;
}

.neciunasnt-services__icon i,
.neciunasnt-services__icon svg {
    display: block;
    width: 48px;
    height: 48px;
}

.neciunasnt-services__icon svg[fill]:not([fill="none"]),
.neciunasnt-services__icon svg [fill]:not([fill="none"]) {
    fill: currentColor;
}

.neciunasnt-services__icon svg[stroke]:not([stroke="none"]),
.neciunasnt-services__icon svg [stroke]:not([stroke="none"]) {
    stroke: currentColor;
}

.neciunasnt-services__card-title {
    margin: 0 0 14px;
    color: var(--neciunasnt-services-burgundy);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

.neciunasnt-services__card-description {
    margin: 0;
    color: var(--neciunasnt-services-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

.neciunasnt-services__cta {
    display: inline-flex;
    width: fit-content;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 26px;
    color: var(--neciunasnt-services-burgundy);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1.3;
    text-decoration: none;
    text-transform: uppercase;
}

.neciunasnt-services__cta svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    stroke: currentColor;
    transition: transform 180ms ease;
}

.neciunasnt-services__cta:hover svg,
.neciunasnt-services__cta:focus-visible svg {
    transform: translateX(3px);
}

.neciunasnt-services__cta:focus-visible,
.neciunasnt-services__dot:focus-visible,
.neciunasnt-services__viewport:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.neciunasnt-services--carousel .neciunasnt-services__viewport {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
}

.neciunasnt-services--carousel .neciunasnt-services__viewport::-webkit-scrollbar {
    display: none;
}

.neciunasnt-services--carousel .neciunasnt-services__cards {
    display: flex;
    align-items: stretch;
}

.neciunasnt-services--carousel .neciunasnt-services__card {
    flex: 0 0 calc((100% - (var(--neciunasnt-services-gap) * 2)) / 3);
    scroll-snap-align: start;
}

.neciunasnt-services__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.neciunasnt-services__dots[hidden],
.neciunasnt-services__dot[hidden] {
    display: none;
}

.neciunasnt-services__dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    appearance: none;
    background-color: #8e7f73;
    cursor: pointer;
    transition: width 180ms ease, border-radius 180ms ease, background-color 180ms ease;
}

.neciunasnt-services__dot[aria-current="true"] {
    width: 28px;
    flex-basis: 28px;
    border-radius: 999px;
    background-color: var(--neciunasnt-services-burgundy);
}

.neciunasnt-services__placeholder {
    padding: 24px;
    border: 1px dashed #8e7f73;
    border-radius: 12px;
    color: var(--neciunasnt-services-muted);
    text-align: center;
}

@media (max-width: 1024px) {
    .neciunasnt-services {
        --neciunasnt-services-gap: 24px;

        padding-block: 88px;
    }

    .neciunasnt-services__heading {
        margin-bottom: 52px;
    }

    .neciunasnt-services__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .neciunasnt-services--carousel .neciunasnt-services__card {
        flex-basis: calc((100% - var(--neciunasnt-services-gap)) / 2);
    }

}

@media (max-width: 767px) {
    .neciunasnt-services {
        --neciunasnt-services-gap: 18px;

        padding-block: 64px;
    }

    .neciunasnt-services__inner {
        width: min(calc(100% - 32px), 1240px);
    }

    .neciunasnt-services__heading {
        margin-bottom: 38px;
    }

    .neciunasnt-services__eyebrow {
        margin-bottom: 10px;
        font-size: 11px;
        letter-spacing: 0.15em;
    }

    .neciunasnt-services__title {
        font-size: clamp(30px, 10vw, 36px);
    }

    .neciunasnt-services__cards {
        grid-template-columns: 1fr;
    }

    .neciunasnt-services--carousel .neciunasnt-services__card {
        flex-basis: min(88%, 340px);
    }

    .neciunasnt-services__card {
        min-height: 326px;
        padding: 30px 28px;
    }

    .neciunasnt-services__dots {
        margin-top: 30px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .neciunasnt-services--carousel .neciunasnt-services__viewport {
        scroll-behavior: auto;
    }

    .neciunasnt-services__cta svg,
    .neciunasnt-services__dot {
        transition: none;
    }
}
