/* ==========================================================
   LF EQUIPE — VARIÁVEIS E BASE
========================================================== */

.lf-team {
    --lf-card-bg: #fffdfa;
    --lf-title: #482817;
    --lf-specialty: #e98625;
    --lf-text: #6d5a4e;
    --lf-initials: #482817;
    --lf-accent: #ed8c2d;
    --lf-border: #efd5b6;
    --lf-shadow: rgba(72, 38, 18, 0.039);
    --lf-shadow-hover: rgba(72, 38, 18, 0.063);
    --lf-radius: 22px;
    --lf-gap: 24px;
    --lf-max-width: 1200px;
    --lf-grid-desktop: 2;
    --lf-grid-tablet: 2;
    --lf-grid-mobile: 1;
    --lf-carousel-desktop: 3;
    --lf-carousel-tablet: 2;
    --lf-carousel-mobile: 1;
    --lf-title-font: "Poppins", sans-serif;
    --lf-body-font: "Inter", sans-serif;
    --lf-title-size: 20px;
    --lf-body-size: 14px;

    width: 100%;
    color: var(--lf-text);
    background: transparent !important;
    font-family: var(--lf-body-font);
    box-sizing: border-box;
}

.lf-team *,
.lf-team *::before,
.lf-team *::after {
    box-sizing: border-box;
}

.lf-team-inner {
    width: 100%;
    max-width: var(--lf-max-width);
    margin: 0 auto;
    background: transparent !important;
}

.lf-team-empty {
    padding: 18px 20px;
    color: #6d5a4e;
    background: #fffdfa;
    border: 1px solid #efd5b6;
    border-radius: 14px;
}


/* ==========================================================
   MONOGRAMA
========================================================== */

.lf-team-monogram {
    position: relative;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 112px;
    height: 112px;
    color: var(--lf-initials);
    background:
        radial-gradient(
            circle at 42% 35%,
            #fff 0%,
            #fffaf2 60%,
            #f6e8d6 100%
        );
    border: 1px solid color-mix(in srgb, var(--lf-accent) 55%, transparent);
    border-radius: 50%;
    box-shadow:
        0 8px 18px rgba(72, 38, 18, 0.035),
        inset 0 0 0 6px rgba(255, 255, 255, 0.75);
    transition:
        transform 0.35s ease,
        border-color 0.35s ease;
}

.lf-team-monogram::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid color-mix(in srgb, var(--lf-accent) 30%, transparent);
    border-radius: inherit;
}

.lf-team-monogram span {
    position: relative;
    z-index: 2;
    transform: translateY(-5px);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 39px;
    font-weight: 500;
    line-height: 1;
}

.lf-team-monogram i {
    position: absolute;
    bottom: 23px;
    left: 50%;
    width: 27px;
    height: 9px;
    border-bottom: 2px solid var(--lf-accent);
    border-radius: 0 0 50% 50%;
    transform: translateX(-50%);
}


/* ==========================================================
   TEXTOS
========================================================== */

.lf-team-name {
    margin: 0;
    color: var(--lf-title);
    font-family: var(--lf-title-font);
    font-size: var(--lf-title-size);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
}

.lf-team-specialty {
    margin: 7px 0 0;
    color: var(--lf-specialty);
    font-family: var(--lf-body-font);
    font-size: calc(var(--lf-body-size) - 1px);
    font-weight: 600;
    line-height: 1.45;
}

.lf-team-description {
    max-width: 92%;
    margin: 17px 0 0;
    color: var(--lf-text);
    font-family: var(--lf-body-font);
    font-size: var(--lf-body-size);
    font-weight: 400;
    line-height: 1.55;
}

.lf-team-cro {
    margin: 18px 0 0;
    color: color-mix(in srgb, var(--lf-text) 75%, transparent);
    font-family: var(--lf-body-font);
    font-size: calc(var(--lf-body-size) - 1px);
    line-height: 1.4;
}

.lf-team-line {
    display: block;
    width: 35px;
    height: 2px;
    margin-bottom: 14px;
    background: var(--lf-accent);
    border-radius: 10px;
    transition: width 0.35s ease;
}


/* ==========================================================
   GRADE — PÁGINA EQUIPE
========================================================== */

.lf-team-grid {
    display: grid;
    grid-template-columns: repeat(var(--lf-grid-desktop), minmax(0, 1fr));
    gap: var(--lf-gap);
    background: transparent !important;
}

.lf-team-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--lf-text);
    background: var(--lf-card-bg);
    border: 1px solid var(--lf-border);
    border-radius: var(--lf-radius);
    box-shadow:
        0 16px 12px -16px var(--lf-shadow);
}

.lf-team-card--grade {
    display: grid;
    grid-template-columns: 142px minmax(0, 1fr);
    align-items: center;
    min-height: 220px;
    padding: 30px 34px 30px 27px;
}

.lf-team-card--grade::before,
.lf-team-card--grade::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -92px;
    bottom: -118px;
    width: 260px;
    height: 190px;
    border: 1px solid color-mix(in srgb, var(--lf-accent) 22%, transparent);
    border-radius: 50%;
    transform: rotate(-12deg);
}

.lf-team-card--grade::after {
    right: -74px;
    bottom: -132px;
    width: 230px;
    border-color: color-mix(in srgb, var(--lf-accent) 12%, transparent);
}

.lf-team-card--grade .lf-team-content {
    position: relative;
    z-index: 2;
    min-width: 0;
    padding-left: 26px;
}

.lf-team-card--grade .lf-team-line {
    display: none;
}

.lf-team-decoration {
    position: absolute;
    z-index: 1;
    right: 25px;
    bottom: 20px;
    display: block;
    width: 70px;
    height: 70px;
    color: color-mix(in srgb, var(--lf-accent) 48%, transparent);
    pointer-events: none;
}

.lf-team-decoration svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ==========================================================
   CARROSSEL — HOME
========================================================== */

.lf-team-carousel {
    position: relative;
    width: 100%;
    padding: 10px 0 43px;
    background: transparent !important;
}

.lf-team-viewport {
    overflow-x: auto;
    overflow-y: visible;
    width: 100%;
    padding: 18px 25px 50px;
    scroll-padding-inline: 25px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    background: transparent !important;
}

.lf-team-viewport::-webkit-scrollbar {
    display: none;
}

.lf-team-track {
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: var(--lf-gap);
    background: transparent !important;
}

.lf-team-slide {
    flex:
        0
        0
        calc(
            (
                100% -
                (var(--lf-gap) * (var(--lf-carousel-desktop) - 1))
            ) /
            var(--lf-carousel-desktop)
        );
    min-width: 0;
    height: auto;
    scroll-snap-align: start;
    background: transparent !important;
}

.lf-team-card--carrossel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 365px;
    height: 100%;
    padding: 27px 25px 25px;
}

.lf-team-card--carrossel::before,
.lf-team-card--carrossel::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -94px;
    right: -88px;
    width: 205px;
    height: 205px;
    border: 1px solid color-mix(in srgb, var(--lf-accent) 23%, transparent);
    border-radius: 50%;
    background: color-mix(in srgb, var(--lf-border) 40%, transparent);
}

.lf-team-card--carrossel::after {
    top: -109px;
    right: -103px;
    width: 235px;
    height: 235px;
    background: transparent;
    border-color: color-mix(in srgb, var(--lf-accent) 12%, transparent);
}

.lf-team-card--carrossel .lf-team-monogram {
    width: 94px;
    height: 94px;
    margin-bottom: 39px;
}

.lf-team-card--carrossel .lf-team-monogram span {
    font-size: 35px;
}

.lf-team-card--carrossel .lf-team-monogram i {
    bottom: 18px;
    width: 24px;
}

.lf-team-card--carrossel .lf-team-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
}

.lf-team-card--carrossel .lf-team-specialty {
    color: var(--lf-text);
    font-weight: 400;
}

.lf-team-arrow {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 43px;
    height: 43px;
    margin-top: 14px;
    color: var(--lf-accent);
    font-family: Arial, sans-serif;
    font-size: 20px;
    line-height: 1;
    border: 1px solid var(--lf-accent);
    border-radius: 50%;
    transition:
        color 0.3s ease,
        background-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* Navegação */

.lf-team-nav {
    position: absolute;
    z-index: 8;
    top: 50%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-width: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--lf-title) !important;
    background: rgba(255, 253, 250, 0.92) !important;
    border: 1px solid rgba(233, 140, 45, 0.22) !important;
    border-radius: 50% !important;
    box-shadow: 0 7px 18px var(--lf-shadow) !important;
    font-family: Arial, sans-serif;
    font-size: 35px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    appearance: none !important;
    -webkit-appearance: none !important;
    outline: 0 !important;
    transform: translateY(-75%);
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        opacity 0.25s ease;
}

.lf-team-nav--prev {
    left: -17px;
}

.lf-team-nav--next {
    right: -17px;
}

.lf-team-nav:hover,
.lf-team-nav:focus-visible {
    color: #fff !important;
    background: var(--lf-accent) !important;
    border-color: var(--lf-accent) !important;
    box-shadow: 0 10px 12px -10px var(--lf-shadow-hover) !important;
    outline: none !important;
}

.lf-team-pagination {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.lf-team-dot {
    width: 7px;
    height: 7px;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(233, 140, 45, 0.24) !important;
    border: 0 !important;
    border-radius: 20px !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    outline: 0 !important;
    cursor: pointer;
    transition:
        width 0.25s ease,
        background-color 0.25s ease;
}

.lf-team-dot.is-active {
    width: 25px;
    background: var(--lf-accent) !important;
}


/* ==========================================================
   HOVERS
========================================================== */

.lf-team-card--hover {
    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.lf-team-card--hover:hover {
    transform: translateY(-3px);
    background: color-mix(in srgb, var(--lf-card-bg) 96%, var(--lf-accent) 4%);
    border-color: var(--lf-accent);
    box-shadow:
        0 19px 14px -17px var(--lf-shadow-hover);
}

.lf-team-card--hover:hover .lf-team-monogram {
    transform: translateY(-3px) rotate(-2deg);
    border-color: var(--lf-accent);
}

.lf-team-card--hover:hover .lf-team-line {
    width: 52px;
}

.lf-team-card--hover:hover .lf-team-arrow {
    color: #fff;
    background: var(--lf-accent);
    transform: translateX(4px);
    box-shadow: 0 7px 16px color-mix(in srgb, var(--lf-accent) 22%, transparent);
}


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

@media (max-width: 1024px) {
    .lf-team-grid {
        grid-template-columns: repeat(var(--lf-grid-tablet), minmax(0, 1fr));
    }

    .lf-team-slide {
        flex-basis:
            calc(
                (
                    100% -
                    (var(--lf-gap) * (var(--lf-carousel-tablet) - 1))
                ) /
                var(--lf-carousel-tablet)
            );
    }

    .lf-team-card--grade {
        grid-template-columns: 118px minmax(0, 1fr);
        padding: 26px 27px 26px 22px;
    }

    .lf-team-card--grade .lf-team-monogram {
        width: 98px;
        height: 98px;
    }

    .lf-team-card--grade .lf-team-monogram span {
        font-size: 35px;
    }

    .lf-team-nav--prev {
        left: -8px;
    }

    .lf-team-nav--next {
        right: -8px;
    }
}


/* ==========================================================
   CELULAR
========================================================== */

@media (max-width: 767px) {
    .lf-team-grid {
        grid-template-columns: repeat(var(--lf-grid-mobile), minmax(0, 1fr));
    }

    .lf-team-slide {
        flex-basis:
            calc(
                (
                    100% -
                    (var(--lf-gap) * (var(--lf-carousel-mobile) - 1))
                ) /
                var(--lf-carousel-mobile)
            );
    }

    .lf-team-card--grade {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 26px 23px 25px;
    }

    .lf-team-card--grade .lf-team-monogram {
        width: 92px;
        height: 92px;
        margin-bottom: 24px;
    }

    .lf-team-card--grade .lf-team-monogram span {
        font-size: 33px;
    }

    .lf-team-card--grade .lf-team-content {
        padding-left: 0;
    }

    .lf-team-card--grade .lf-team-description {
        max-width: 100%;
    }

    .lf-team-decoration {
        right: 17px;
        bottom: 13px;
        width: 58px;
        height: 58px;
        opacity: 0.65;
    }

    .lf-team-card--carrossel {
        min-height: 350px;
        padding: 26px 22px 23px;
    }

    .lf-team-card--carrossel .lf-team-monogram {
        margin-bottom: 34px;
    }

    .lf-team-nav {
        top: auto;
        bottom: 0;
        transform: none;
    }

    .lf-team-nav--prev {
        left: calc(50% - 55px);
    }

    .lf-team-nav--next {
        right: calc(50% - 55px);
    }

    .lf-team-pagination {
        display: none;
    }

    .lf-team-carousel {
        padding-bottom: 55px;
    }
}


/* ==========================================================
   ACESSIBILIDADE
========================================================== */

@media (prefers-reduced-motion: reduce) {
    .lf-team *,
    .lf-team *::before,
    .lf-team *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
    }
}
