/* =========================================================
   SFC TEAM CARD PARTNERS
========================================================= */

.sfc-tcp,
.sfc-tcp * {
    box-sizing: border-box;
}

.sfc-tcp {
    --sfc-tcp-bg: #3a2020;
    --sfc-tcp-card: #f3e8bc;
    --sfc-tcp-text: #090909;
    --sfc-tcp-red: #df2727;
    --sfc-tcp-gold: #f5c400;
    --sfc-tcp-border: rgba(0, 0, 0, 0.18);

    width: 100%;
    overflow: hidden;

    background: var(--sfc-tcp-bg);

    padding: 180px 0 90px;
}

.sfc-tcp__inner {
    width: min(100%, 1800px);
    margin: 0 auto;
}

/* =========================================================
   HEADER
========================================================= */

.sfc-tcp__header {
    padding: 0 clamp(20px, 4vw, 64px);
    margin-bottom: 90px;

    text-align: center;
}

.sfc-tcp__title {
    margin: 0;

    color: #f5e8bd;

    font-family: "RedGiants", "Arial Narrow", sans-serif;
    font-size: clamp(52px, 5.5vw, 90px);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.025em;
    text-transform: none;
}

/* =========================================================
   CAROUSEL
========================================================= */

.sfc-tcp__viewport {
    width: 100%;
    overflow: hidden;
}

.sfc-tcp__track {
    display: flex;
    gap: 20px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scroll-padding-left: clamp(20px, 3vw, 52px);

    scrollbar-width: none;

    padding: 4px clamp(20px, 3vw, 52px) 18px;

    cursor: grab;

    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.sfc-tcp__track::-webkit-scrollbar {
    display: none;
}

.sfc-tcp__track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}

/* =========================================================
   PARTNER CARD
========================================================= */

.sfc-tcp__card {
    flex: 0 0 calc((100% - 80px) / 5);

    min-width: 245px;
    max-width: none;
    min-height: 350px;

    position: relative;
    overflow: hidden;

    scroll-snap-align: start;

    border: 1px solid var(--sfc-tcp-border);
    border-radius: 17px;

    background: var(--sfc-tcp-card);
    color: var(--sfc-tcp-text);

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.10);

    transition:
        transform 0.45s cubic-bezier(.22, .61, .36, 1),
        box-shadow 0.45s cubic-bezier(.22, .61, .36, 1),
        border-color 0.45s ease;
}

/* Moving light reflection */

.sfc-tcp__card::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            115deg,
            transparent 20%,
            rgba(255, 255, 255, 0.10) 35%,
            rgba(255, 255, 255, 0.28) 50%,
            rgba(255, 255, 255, 0.10) 65%,
            transparent 80%
        );

    transform: translateX(-170%);

    transition:
        transform 0.8s ease;

    pointer-events: none;

    z-index: 2;
}

/* Soft gold glow */

.sfc-tcp__card::after {
    content: "";

    position: absolute;
    inset: -2px;

    border-radius: 18px;

    box-shadow:
        0 0 0 rgba(245, 196, 0, 0);

    transition:
        box-shadow 0.45s ease;

    pointer-events: none;

    z-index: 3;
}

/* Card hover */

.sfc-tcp__card:hover {
    transform:
        translateY(-10px)
        scale(1.02);

    border-color:
        rgba(245, 196, 0, 0.55);

    box-shadow:
        0 22px 45px rgba(0, 0, 0, 0.22),
        0 0 30px rgba(245, 196, 0, 0.15);
}

.sfc-tcp__card:hover::before {
    transform: translateX(170%);
}

.sfc-tcp__card:hover::after {
    box-shadow:
        0 0 35px rgba(245, 196, 0, 0.18);
}

/* Disable hover movement while dragging */

.sfc-tcp__track.is-dragging .sfc-tcp__card {
    transform: none;
}

/* =========================================================
   CARD CONTENT
========================================================= */

.sfc-tcp__content {
    display: grid;
    grid-template-rows: auto 1fr auto;

    position: relative;
    z-index: 1;

    width: 100%;
    height: 100%;
    min-height: inherit;

    padding: 24px;
}

.sfc-tcp__heading {
    min-height: 68px;
}

.sfc-tcp__name {
    margin: 0 0 4px;

    color: var(--sfc-tcp-text);

    font-family: "RedGiants", "Arial Narrow", sans-serif;
    font-size: clamp(25px, 1.65vw, 31px);
    font-weight: 800;
    line-height: 1.04;

    transition:
        color 0.35s ease,
        transform 0.35s ease;
}

.sfc-tcp__category {
    margin: 0;

    color: var(--sfc-tcp-text);

    font-family: Arial, sans-serif;
    font-size: clamp(14px, 1vw, 17px);
    font-weight: 700;
    line-height: 1.25;

    transition:
        color 0.35s ease,
        transform 0.35s ease;
}

.sfc-tcp__card:hover .sfc-tcp__name {
    color: #b30000;
    transform: translateY(-2px);
}

/* =========================================================
   LOGO
========================================================= */

.sfc-tcp__logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 145px;

    padding: 16px 10px;
}

.sfc-tcp__logo {
    display: block;

    width: auto;
    height: auto;

    max-width: 70%;
    max-height: 105px;

    object-fit: contain;

    transition:
        transform 0.45s cubic-bezier(.22, .61, .36, 1),
        filter 0.45s ease;
}

.sfc-tcp__card:hover .sfc-tcp__logo {
    transform: scale(1.08);

    filter:
        drop-shadow(
            0 10px 18px rgba(0, 0, 0, 0.18)
        );
}

/* =========================================================
   LOCATION
========================================================= */

.sfc-tcp__location {
    display: flex;
    align-items: center;
    gap: 11px;

    min-height: 38px;

    font-family: Arial, sans-serif;
    font-size: clamp(14px, 1vw, 17px);
    font-weight: 700;
    line-height: 1.3;

    transition:
        color 0.35s ease,
        transform 0.35s ease;
}

.sfc-tcp__pin {
    position: relative;
    flex: 0 0 auto;

    width: 16px;
    height: 16px;

    border-radius: 50% 50% 50% 0;

    background: var(--sfc-tcp-red);

    transform: rotate(-45deg);
}

.sfc-tcp__pin::after {
    content: "";

    position: absolute;
    top: 5px;
    left: 5px;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--sfc-tcp-card);
}

/* =========================================================
   CONTROLS
========================================================= */

.sfc-tcp__controls {
    display: flex;
    gap: 12px;

    padding:
        26px
        clamp(20px, 3vw, 52px)
        0;
}

.sfc-tcp__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 50px;
    height: 50px;

    padding: 0;

    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 50%;

    background: var(--sfc-tcp-card);
    color: #1a1715;

    font-size: 27px;
    line-height: 1;

    cursor: pointer;

    transition:
        transform 180ms ease,
        opacity 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.sfc-tcp__arrow:hover {
    transform: translateY(-2px);

    background: #fff3c8;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.15);
}

.sfc-tcp__arrow:disabled {
    opacity: 0.35;
    cursor: default;
    transform: none;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1200px) {

    .sfc-tcp {
        padding-top: 150px;
    }

    .sfc-tcp__header {
        margin-bottom: 75px;
    }

    .sfc-tcp__card {
        flex-basis:
            calc((100% - 60px) / 4);

        min-width: 235px;
    }
}

/* =========================================================
   SMALL TABLET
========================================================= */

@media (max-width: 900px) {

    .sfc-tcp {
        padding-top: 125px;
        padding-bottom: 75px;
    }

    .sfc-tcp__header {
        margin-bottom: 60px;
    }

    .sfc-tcp__card {
        flex-basis:
            calc((100% - 40px) / 3);

        min-width: 230px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .sfc-tcp {
        padding: 90px 0 65px;
    }

    .sfc-tcp__header {
        padding-inline: 18px;
        margin-bottom: 45px;
    }

    .sfc-tcp__title {
        font-size:
            clamp(42px, 13vw, 62px);
    }

    .sfc-tcp__track {
        gap: 14px;

        padding:
            4px
            16px
            16px;

        scroll-padding-left: 16px;
    }

    .sfc-tcp__card {
        flex:
            0 0 min(84vw, 330px);

        min-width: 0;
        min-height: 345px;

        border-radius: 15px;
    }

    .sfc-tcp__content {
        padding: 24px 22px;
    }

    .sfc-tcp__heading {
        min-height: 65px;
    }

    .sfc-tcp__name {
        font-size: 28px;
    }

    .sfc-tcp__category {
        font-size: 15px;
    }

    .sfc-tcp__logo-wrap {
        min-height: 140px;

        padding: 14px 8px;
    }

    .sfc-tcp__logo {
        max-width: 72%;
        max-height: 100px;
    }

    .sfc-tcp__location {
        font-size: 15px;
    }

    .sfc-tcp__controls {
        padding:
            20px
            16px
            0;
    }

    .sfc-tcp__arrow {
        width: 46px;
        height: 46px;

        font-size: 25px;
    }

    /*
     * Touch devices do not need the card lift effect.
     * This prevents cards from remaining visually hovered.
     */

    .sfc-tcp__card:hover {
        transform: none;
    }

    .sfc-tcp__card:hover .sfc-tcp__logo {
        transform: none;
        filter: none;
    }

    .sfc-tcp__card:hover .sfc-tcp__name {
        color: var(--sfc-tcp-text);
        transform: none;
    }

    .sfc-tcp__card:hover::before {
        transform: translateX(-170%);
    }

    .sfc-tcp__card:hover::after {
        box-shadow:
            0 0 0 rgba(245, 196, 0, 0);
    }
}

/* =========================================================
   FINAL DESKTOP OVERRIDE
   FIVE SHORTER CARDS PER VIEW
========================================================= */

@media (min-width: 1201px) {

    .sfc-tcp {
        padding-top: 180px !important;
        padding-bottom: 90px !important;
    }

    .sfc-tcp__header {
        margin-bottom: 100px !important;
    }

    .sfc-tcp__track {
        gap: 20px !important;

        padding-left: 40px !important;
        padding-right: 40px !important;
    }

    .sfc-tcp__card {
        flex:
            0 0 calc((100% - 80px) / 5) !important;

        width:
            calc((100% - 80px) / 5) !important;

        min-width: 0 !important;
        max-width: none !important;
        min-height: 350px !important;
    }

    .sfc-tcp__content {
        min-height: 350px !important;
        padding: 24px !important;
    }

    .sfc-tcp__heading {
        min-height: 65px !important;
    }

    .sfc-tcp__logo-wrap {
        min-height: 135px !important;

        padding:
            12px
            8px !important;
    }

    .sfc-tcp__logo {
        max-width: 70% !important;
        max-height: 100px !important;
    }
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .sfc-tcp__track {
        scroll-behavior: auto;
    }

    .sfc-tcp__card,
    .sfc-tcp__card::before,
    .sfc-tcp__card::after,
    .sfc-tcp__logo,
    .sfc-tcp__name,
    .sfc-tcp__category,
    .sfc-tcp__location,
    .sfc-tcp__arrow {
        transition: none;
    }

    .sfc-tcp__card:hover {
        transform: none;
    }

    .sfc-tcp__card:hover .sfc-tcp__logo {
        transform: none;
    }

    .sfc-tcp__card:hover::before {
        transform: translateX(-170%);
    }
}