/**
 * Smoco Essentials V2 — Bedarfs-Cards widget.
 *
 * Colors resolve via tokens.css (--sev-* → theme CSS variables).
 * radius-lg 24px · shadow-sm / shadow-md from theme.
 */

/* ── Header ──────────────────────────────────────────── */
.sev-audience__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.sev-audience__eyebrow {
    color: var(--sev-section-eyebrow);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 12px;
}

.sev-audience__title {
    font-size: clamp(28px, 3vw, 38px);
    color: var(--sev-section-heading);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 14px;
}

.sev-audience__desc {
    color: var(--sev-section-body);
    max-width: 520px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.55;
}

/* ── Grid ────────────────────────────────────────────── */
.sev-audience__grid {
    display: grid;
    grid-template-columns: repeat(var(--sev-columns, 3), minmax(0, 1fr));
    gap: 28px;
}

/* ── Card ────────────────────────────────────────────── */
.sev-card {
    display: block;
    background: var(--sev-item-surface, var(--sev-surface));
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--sev-shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

a.sev-card:hover,
a.sev-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: var(--sev-shadow-md);
}

.sev-card:focus-visible {
    outline: 2px solid var(--sev-accent);
    outline-offset: 3px;
}

.sev-card__img {
    height: 180px;
    background: var(--sev-border) center / cover no-repeat;
}

.sev-card__body {
    padding: 28px 28px 32px;
}

.sev-card__num {
    font-size: 11px;
    font-weight: 800;
    color: var(--sev-item-accent, var(--sev-eyebrow));
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.sev-card__title {
    color: var(--sev-item-heading, var(--sev-heading));
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0 0 10px;
}

.sev-card__text {
    font-size: 14px;
    color: var(--sev-item-body, var(--sev-body));
    line-height: 1.55;
    margin: 0;
}

/* ── Carousel ────────────────────────────────────────── */
.sev-carousel {
    --sev-gap: 28;
    position: relative;
}

.sev-carousel__viewport {
    overflow: hidden;
    /* Vertical breathing room so card hover-lift + shadow are not clipped.
       Only vertical padding to keep the JS slide-width calc (clientWidth) intact. */
    padding: 8px 0 18px;
}

.sev-carousel__track {
    display: flex;
    gap: calc(var(--sev-gap) * 1px);
    will-change: transform;
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.sev-carousel__slide {
    flex: 0 0 auto;
    box-sizing: border-box;
    /* Width is calculated inline by JS based on slides-per-view. */
}

/* Arrows */
.sev-carousel__arrow {
    position: absolute;
    /* Vertically centred on the card image (default image height 180px,
       plus the viewport's 8px top padding). */
    top: 98px;
    transform: translateY(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--sev-surface);
    color: var(--sev-heading);
    box-shadow: var(--sev-shadow-md);
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.sev-carousel__arrow:hover {
    transform: translateY(-50%) scale(1.08);
}

.sev-carousel__arrow--prev {
    left: -10px;
}

.sev-carousel__arrow--next {
    right: -10px;
}

.sev-carousel__arrow[disabled] {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

/* Dots */
.sev-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.sev-carousel__dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--sev-border);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.sev-carousel__dot.is-active {
    background: var(--sev-heading);
    transform: scale(1.25);
}

.sev-carousel.is-dragging .sev-carousel__track {
    transition: none;
}

.sev-carousel.is-grabbing {
    cursor: grabbing;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
    .sev-carousel__arrow--prev {
        left: 4px;
    }
    .sev-carousel__arrow--next {
        right: 4px;
    }
}

@media (max-width: 767px) {
    .sev-audience__head {
        margin-bottom: 36px;
    }
    .sev-carousel__arrow {
        width: 40px;
        height: 40px;
    }
}
