/* =========================================
   TEAM SECTION
   ========================================= */

.team {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 80px 48px 120px;
    overflow: hidden;
}

.team__ellipse {
    position: absolute;
    width: 1470px;
    height: 406px;
    left: 50%;
    bottom: 60px;
    transform: translateX(-50%);
    border: 15px solid rgba(78, 32, 61, 0.025);
    border-radius: 500px;
    pointer-events: none;
}

.team__container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 94px;
    width: 100%;
    max-width: 1329px;
}

/* Left side */
.team__left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    max-width: 538px;
    flex-shrink: 0;
}

.team__tag {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 14px;
    background: rgba(78, 32, 61, 0.05);
    border-radius: 32px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.2;
    color: var(--color-primary);
}

.team__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(28px, 3.5vw, 36px);
    line-height: 1.2;
    color: var(--color-primary);
    margin: 0;
}

.team__description {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(16px, 1.8vw, 18px);
    line-height: 1.35;
    color: var(--color-text-light);
    margin: 0;
}

.team__cta {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 12px 8px 12px 16px;
    gap: 10px;
    background: var(--color-primary);
    border-radius: 32px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
}

.team__cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.team__cta span:first-child {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 18px;
    line-height: 1.2;
    color: var(--color-text-white);
}

.team__cta-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background: var(--color-bg);
    border-radius: 50%;
    color: var(--color-primary);
}

.team__cta-icon svg {
    margin-left: 2px;
}

/* Right side - team grid */
.team__right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.team__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px 48px;
}

.team__member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.team__photo-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
}

.team__photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(78, 32, 61, 0.08);
}

.team__linkedin {
    position: absolute;
    top: 0;
    right: -4px;
    width: 28px;
    height: 28px;
    background: #4F203E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.team__linkedin:hover {
    transform: scale(1.1);
}

.team__name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    color: var(--color-primary);
    margin: 4px 0 0;
}

.team__role {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.3;
    color: var(--color-text-light);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1100px) {
    .team__container {
        gap: 48px;
    }

    .team__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px 32px;
    }
}

@media (max-width: 900px) {
    .team {
        padding: 60px 24px 60px;
    }

    .team__container {
        flex-direction: column;
        align-items: center;
        gap: 36px;
    }

    .team__left {
        max-width: 100%;
        align-items: center;
        text-align: center;
    }

    .team__title {
        font-size: 26px;
    }

    .team__description {
        font-size: 15px;
    }

    .team__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px 28px;
    }

    .team__photo-wrapper,
    .team__photo {
        width: 100px;
        height: 100px;
    }

    .team__ellipse {
        display: none;
    }
}

@media (max-width: 640px) {
    .team {
        padding: 40px 16px 48px;
    }

    .team__container {
        gap: 28px;
    }

    .team__title {
        font-size: 22px;
    }

    .team__description {
        font-size: 14px;
    }

    .team__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px 12px;
    }

    .team__photo-wrapper,
    .team__photo {
        width: 80px;
        height: 80px;
    }

    .team__linkedin {
        width: 22px;
        height: 22px;
        right: -2px;
    }

    .team__linkedin svg {
        width: 11px;
        height: 11px;
    }

    .team__name {
        font-size: 12px;
    }

    .team__role {
        font-size: 10px;
    }

    .team__cta span:first-child {
        font-size: 15px;
    }
}

@media (max-width: 420px) {
    .team__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px 10px;
    }

    .team__photo-wrapper,
    .team__photo {
        width: 70px;
        height: 70px;
    }

    .team__linkedin {
        width: 20px;
        height: 20px;
    }

    .team__linkedin svg {
        width: 10px;
        height: 10px;
    }

    .team__name {
        font-size: 11px;
    }

    .team__role {
        font-size: 9px;
    }

    .team__cta span:first-child {
        font-size: 14px;
    }
}
