/* =========================================================
   SAVVY LEATHER CRAFT
   SOCIAL MEDIA
   ========================================================= */

.social-section {
    width: 100%;

    padding: 105px 0 90px;

    background: #fff;

    overflow: hidden;
}


/* =========================================================
   HEADER
   ========================================================= */

.social-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 60px;

    margin-bottom: 70px;
}


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

.social-heading {
    flex: 1;

    max-width: 720px;
}


.social-eyebrow {
    margin: 0 0 18px;

    color: #171513;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: .1px;
}


.social-heading h2 {
    margin: 0;

    color: #171513;

    font-family: var(--serif);

    font-size: clamp(
        58px,
        6vw,
        82px
    );

    font-weight: 400;

    line-height: .9;

    letter-spacing: -3.5px;
}


.social-description {
    max-width: 650px;

    margin: 25px 0 0;

    color: #4d5662;

    font-size: 14px;

    line-height: 1.6;
}


/* =========================================================
   SOCIAL CARDS
   ========================================================= */

.social-platforms {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;

    width: 600px;

    flex-shrink: 0;
}


.social-platform {
    min-height: 118px;

    padding: 15px 16px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border: 1px solid #e3e1de;

    background: #fff;

    color: #151515;

    text-decoration: none;

    transition:
        transform .3s ease,
        background .3s ease,
        border-color .3s ease;
}


.social-platform:hover {
    background: #faf8f5;

    border-color: #cfc8c0;

    transform: translateY(-3px);
}


.social-platform-count {
    align-self: flex-end;

    color: #414a56;

    font-size: 15px;
}


.social-platform-main {
    display: flex;
    align-items: center;

    gap: 12px;
}


.social-icon {
    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;
}


.social-icon svg {
    width: 100%;
    height: 100%;
}


.social-platform strong {
    font-size: 17px;

    font-weight: 700;

    letter-spacing: -.3px;
}


/* =========================================================
   CAROUSEL
   ========================================================= */

.social-carousel {
    position: relative;

    width: 100%;
}


/* Visible area */

.social-carousel-window {
    width: 100%;

    overflow: hidden;
}


/* Sliding track */

.social-carousel-track {
    display: flex;

    gap: 6px;

    width: max-content;

    transition:
        transform .65s cubic-bezier(.22,.61,.36,1);
}


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

.social-gallery-item {
    position: relative;

    display: block;

    width: calc(
        (100vw - 120px) / 6
    );

    max-width: 340px;

    min-width: 220px;

    aspect-ratio: 1 / 1.28;

    overflow: hidden;

    background: #eee;

    flex-shrink: 0;
}


.social-gallery-item img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .8s cubic-bezier(.2,.65,.25,1);
}


.social-gallery-item:hover img {
    transform: scale(1.055);
}


/* subtle overlay */

.social-gallery-item::after {
    content: "";

    position: absolute;

    inset: 0;

    background: rgba(20,16,13,.08);

    opacity: 0;

    transition: opacity .3s ease;
}


.social-gallery-item:hover::after {
    opacity: 1;
}


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

.social-carousel-arrow {
    position: absolute;

    top: 50%;

    z-index: 5;

    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    padding: 0;

    border: 1px solid rgba(255,255,255,.65);

    border-radius: 50%;

    background: rgba(255,255,255,.95);

    color: #171513;

    font-size: 17px;

    cursor: pointer;

    transform: translateY(-50%);

    opacity: 0;

    transition:
        opacity .3s ease,
        transform .3s ease,
        background .3s ease;
}


.social-carousel:hover .social-carousel-arrow {
    opacity: 1;
}


.social-carousel-arrow:hover {
    background: #171513;

    color: #fff;

    transform:
        translateY(-50%)
        scale(1.05);
}


.social-carousel-prev {
    left: 18px;
}


.social-carousel-next {
    right: 18px;
}


/* =========================================================
   PROGRESS
   ========================================================= */

.social-carousel-progress {
    width: 100%;

    height: 1px;

    margin-top: 22px;

    background: #e3e0dc;

    overflow: hidden;
}


.social-carousel-progress span {
    display: block;

    width: 16.66%;
    height: 100%;

    background: #171513;

    transition:
        width .5s ease;
}


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

@media (max-width: 1100px) {

    .social-platforms {
        width: 500px;
    }


    .social-gallery-item {
        width: calc(
            (100vw - 80px) / 4
        );
    }

}


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

@media (max-width: 850px) {

    .social-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 35px;

        margin-bottom: 45px;
    }


    .social-platforms {
        width: 100%;

        max-width: 650px;
    }


    .social-gallery-item {
        width: calc(
            (100vw - 55px) / 3
        );
    }

}


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

@media (max-width: 600px) {

    .social-section {
        padding: 70px 0 65px;
    }


    .social-header {
        gap: 28px;

        margin-bottom: 38px;
    }


    .social-eyebrow {
        margin-bottom: 15px;

        font-size: 10px;
    }


    .social-heading h2 {
        font-size: 55px;

        letter-spacing: -2.5px;
    }


    .social-description {
        max-width: 330px;

        margin-top: 18px;

        font-size: 12px;
    }


    .social-platforms {
        width: 100%;

        gap: 6px;
    }


    .social-platform {
        min-height: 90px;

        padding: 11px;
    }


    .social-platform-count {
        font-size: 10px;
    }


    .social-platform-main {
        gap: 7px;
    }


    .social-icon {
        width: 18px;
        height: 18px;
    }


    .social-platform strong {
        font-size: 11px;
    }


    /* -----------------------------------------
       MOBILE CAROUSEL
       ----------------------------------------- */

    .social-carousel {
        width: calc(100% + 40px);

        margin-left: -20px;
    }


    .social-carousel-window {
        overflow: hidden;
    }


    .social-carousel-track {
        gap: 5px;
    }


    .social-gallery-item {
        width: 72vw;

        min-width: 72vw;

        max-width: 310px;

        aspect-ratio: 1 / 1.25;
    }


    .social-carousel-arrow {
        width: 40px;
        height: 40px;

        opacity: 1;

        font-size: 14px;
    }


    .social-carousel-prev {
        left: 10px;
    }


    .social-carousel-next {
        right: 10px;
    }


    .social-carousel-progress {
        margin-top: 16px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

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

    .social-platform,
    .social-gallery-item img,
    .social-carousel-track,
    .social-carousel-progress span {
        transition: none;
    }

}