﻿/* ── Mobile: horizontal carousel ── */
.wwd__carousel-wrap {
    position: relative;
}

.wwd__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.75rem;
}

    .wwd__grid::-webkit-scrollbar {
        display: none;
    }

.svc-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    /* 78vw minus the padding so the peek works correctly */
    flex: 0 0 calc(78vw - 1.25rem);
    max-width: 320px;
    aspect-ratio: 4/5;
    scroll-snap-align: start;
    opacity: 1;
    transform:translateY(0px);
    transition: transform 0.3s var(--ease-out);
}


    .svc-card:active {
        transform: scale(0.98);
    }

.svc-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out);
}

.svc-card:hover .svc-card__img {
    transform: scale(1.04);
}

.svc-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    transition: background 0.4s;
}

.svc-card:hover .svc-card__overlay {
    background: rgba(0,0,0,0.4);
}

.svc-card__num {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-family: 'Consolas', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    color: var(--gold);
    user-select: none;
}

.svc-card__body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
}

.svc-card__name {
    font-family: 'Arial', sans-serif;
    font-weight: 700;
    font-size: clamp(1.3rem, 4vw, 1.7rem);
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.svc-card__desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(245,242,236,0.65);
    max-width: 260px;
}

/* Carousel dots */
.wwd__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.375rem;
    margin-top: 1.25rem;
    padding: 0 1.25rem;
}

.wwd__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-dim);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, width 0.25s, border-radius 0.25s;
    flex-shrink: 0;
}

    .wwd__dot.active {
        background: var(--gold);
        width: 20px;
        border-radius: 3px;
    }

/* ── Desktop: grid — hide dots, restore grid layout ── */
@media (min-width: 480px) {
    .wwd {
        padding: 3.5rem 1.5rem;
    }

    .wwd__header {
        padding: 0;
    }

    .wwd__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        overflow-x: visible;
        scroll-snap-type: none;
        padding: 0;
    }

    .svc-card {
        flex: unset;
        max-width: unset;
        aspect-ratio: 4/5;
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
        scroll-snap-align: none;
    }

        .svc-card.revealed {
            opacity: 1;
            transform: translateY(0);
        }

        .svc-card:first-child {
            grid-column: 1/-1;
            aspect-ratio: 16/7;
        }

    .wwd__dots {
        display: none;
    }

    .wwd__carousel-wrap {
        position: static;
    }
}

@media (min-width: 768px) {
    .wwd {
        padding: 4rem 2.5rem 5rem;
    }

    .wwd__header {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        margin-bottom: 3.75rem;
    }

    .wwd__intro {
        max-width: 380px;
    }

    .wwd__grid {
        gap: 1rem;
    }
}

@media (min-width: 900px) {
    .wwd {
        padding: 5rem 3rem 6rem;
    }

    .wwd__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .svc-card:first-child {
        grid-column: auto;
        aspect-ratio: 4/5;
    }
}

@media (min-width: 1280px) {
    .wwd {
        padding: 6rem 5rem 8rem;
    }

    .wwd__grid {
        gap: 1.25rem;
    }
}
